Support » Fixing WordPress » XML Parsing Error: attributes construct error when validating

  • Resolved klagreca


    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: When looking at the page in code view, everything looks good. But the code output view in the 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”?


Viewing 2 replies - 1 through 2 (of 2 total)
  • 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="">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=""title="Website design by LaGreca Arts" >Web Design</a>

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

    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.


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘XML Parsing Error: attributes construct error when validating’ is closed to new replies.