Forums

[resolved] Read docs and searched forums, but no answer (6 posts)

  1. t-p
    Member
    Posted 2 years ago #

    Hi,

    when W3 validate wp(default theme),I get these 3 errors:

    1. Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"?
    <div id="header" role="banner">

    2. Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"?
    <form role="search" method="get" id="searchform" action="http://www.examplesite.

    3. Attribute "role" is not a valid attribute. Did you mean "frameborder" or "scrolling"?
    <ul role="navigation">

    These may minor errors, nonetheless they are errors.

    Is there any available solution to eliminate these 3 errors?

    is WP 2.9 going to take care of these errors?

    Thanks for your help. Waiting for reply,

    tara

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Is there any available solution to eliminate these 3 errors?

    You could edit your theme templates files and remove any reference to role=[ some text ].

    is WP 2.9 going to take care of these errors?

    Nope. It's an issue with the default theme and when I did raise it in Trac, I was told that it wouldn't be fixed.

  3. alism
    Member
    Posted 2 years ago #

    Have a read of esmi's reply in this thread:
    http://wordpress.org/support/topic/279025?replies=3

  4. t-p
    Member
    Posted 2 years ago #

    Thanks esmi and alism,

    You could edit your theme templates files and remove any reference to role=[ some text ].

    You mean remove these totally? No side-effect?
    (1) role="banner"
    (2) role="search"
    (3) role="navigation"

    --tara

  5. alism
    Member
    Posted 2 years ago #

    That's right. Have a read of this if you're feeling brave. :-)
    http://www.w3.org/TR/xhtml-role/

  6. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    No side effects that you would ever notice yourself. The role attribute was added to the default theme to aid people who have visual impairments and use screen readers (like audio browsers). It provides additional info that allows these users to build a better mental model of a page that they might not actually be able to see.

    If you're at all curious as to how people who can't see use web sites, have a look at http://video.yahoo.com/video/play?vid=514676

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.