This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 21748 - Incorrectly identifies role="search" on a section element as being a validation error
Summary: Incorrectly identifies role="search" on a section element as being a validati...
Status: CLOSED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 major
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-19 02:51 UTC by Paul Jackson
Modified: 2015-08-23 07:07 UTC (History)
2 users (show)

See Also:


Attachments

Description Paul Jackson 2013-04-19 02:51:41 UTC
Until recently role="search" on a section element passed HTML5 validation. Without any change to the HTML markup, all of a sudden pages that passed HTML5 validation now throw the following error: 

Error Line 62, Column 23: Bad value search for attribute role on element section.
<section role="search"><div id="wet-srchbx"><h2>Search</h2>

(used http://wet-boew.github.io/wet-boew/demos/index-eng.html for this example)

Looking at the W3C HTML5 candidate recommendation, the latest W3C HTML5.1 draft and even the WHATWG HTML living standard they all indicate that role="search" is acceptable on a section element. Here are the relevant sections in each of those documents:

HTML5: http://www.w3.org/TR/html5/dom.html#sec-implicit-aria-semantics
HTML5.1: http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics
HTML living standard: http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#wai-aria

Please correct the validator so it no longer incorrectly identifies role="search" on a section element as being a validation error.

Note that this bug also affects the Nu Markup validator and Validator.nu.
Comment 1 Michael[tm] Smith 2013-04-20 14:16:47 UTC
Fixed in the validator sources. I'll push the change to the validator later today.
Comment 2 Paul Jackson 2013-04-21 01:24:24 UTC
Just checked and the pages are validating correctly again. Thank you for fixing the issue so quickly!
Comment 3 Ian 'Hixie' Hickson 2014-10-23 22:37:11 UTC
*** Bug 27149 has been marked as a duplicate of this bug. ***