Title: &#8220;role&#8221; attribute validation errors
Last modified: August 19, 2016

---

# “role” attribute validation errors

 *  [kostuj](https://wordpress.org/support/users/kostuj/)
 * (@kostuj)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/role-attribute-validation-errors/)
 * 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/](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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 10 months ago](https://wordpress.org/support/topic/role-attribute-validation-errors/#post-1150350)
 * > 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.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [esmi](https://wordpress.org/support/users/esmi/)
 * Last activity: [16 years, 10 months ago](https://wordpress.org/support/topic/role-attribute-validation-errors/#post-1150350)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
