• Resolved klagreca

    (@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: https://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)
  • Thread Starter klagreca

    (@klagreca)

    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="https://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="https://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?

    Thread Starter klagreca

    (@klagreca)

    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 ‘XML Parsing Error: attributes construct error when validating’ is closed to new replies.