• My upgrading from version 2.3 to 2.8.2 went pretty smoothly with the exception of a few validation errors I am stumped about. I see that the attribute “role” is used many times throughout the code with no problems, yet in a few specific places I get validation errors for role=”banner,” role=”search,” and role=”navigation” (http://www.waggleweight.com/blog/). I do not recall editing out any code that used these specific terms, but I could have. Any opinions and/or suggestions would be appreciated, and I thank you very much in advance.

    Also, when validating my feed, while I get green for well-formatted xml, I also always get a warning that no doctype was found and so validation is skipped. Is this normal for wordpress or could I have inadvertently altered something in the code to cause this? Thank you again.

Viewing 1 replies (of 1 total)
  • I do not recall editing out any code that used these specific terms, but I could have.

    Sounds like you’ve copied markup from the default theme. This theme uses the HTML5 role attribute in a few places but, unfortunately, this attribute is not allowed in XHTML1.0. You can simply remove all references to this attribute from your templates. It shouldn’t impact on your design/display.

    I also always get a warning that no doctype was found

    On your pages or your RSS feed?

Viewing 1 replies (of 1 total)
  • The topic ‘“role” attribute validation errors’ is closed to new replies.