WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] XML Parsing Error: attributes construct error when validating

[Resolved] XML Parsing Error: attributes construct error when validating

  • 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”?
    🙂

    Thanks,
    Kristopher

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="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?

    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.

    Kris

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