[resolved] XML Parsing Error: attributes construct error when validating (3 posts)

  1. klagreca
    Posted 8 years ago #

    Hi folks!
    Here's a problem that I've been fighting a loosing battle with: Proper validation with W3C.

    I think the problem lies with WordPress removing spaces in the attributes within tags. Here's the page in question: http://www.lagrecaarts.com/shop. When looking at the page in code view, everything looks good. But the code output view in the W3.org page clearly shows the spacing missing between the href and title attributes.

    I've switched themes to test, no change.
    I've turned off the "correct invalid nested XHTML.." option, no change.

    And funny, but there doesn't seem to be a problem with my homepage, which also has hyperlinks.

    Any ideas, other than "disable the visual editor"?


  2. klagreca
    Posted 8 years ago #

    Just to give things a "bump" here is a precise example of that's happening:

    In my code view, a link looks like this:
    <a title="Website design by LaGreca Arts" href="http://www.lagrecaarts.com/technology-services/services/web-design">Web Design</a>

    Looks good, right? Well, when I use a code view from Safari or in the W3C output view, the link looks like this:
    <a href="http://www.lagrecaarts.com/technology-services/services/web-design"title="Website design by LaGreca Arts" >Web Design</a>

    Now that's not right. Why/where is WordPress doing this?

  3. klagreca
    Posted 8 years ago #

    Well, looks like it fixed itself. Can't say the upgrade to 2.5.1 fixed anything, because it was still happening after the upgrade. So my apologizes if you have the same issue. I don't know how it was corrected.


Topic Closed

This topic has been closed to new replies.

About this Topic