<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22895</bug_id>
          
          <creation_ts>2013-08-07 15:44:54 +0000</creation_ts>
          <short_desc>The validator does not seem to like the value &apos;directory&apos; for the role attribute</short_desc>
          <delta_ts>2013-08-12 11:57:30 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shane McCarron">shane</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>faulkner.steve</cc>
    
    <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91730</commentid>
    <comment_count>0</comment_count>
    <who name="Shane McCarron">shane</who>
    <bug_when>2013-08-07 15:44:54 +0000</bug_when>
    <thetext>When validating a draft document at http://www.w3.org/2010/02/rdfa/sources/rdfa-core/Overview.html the validator complains about the value &apos;directory&apos; for the attribute &apos;role&apos;.  The role attribute takes values defined in http://www.w3.org/1999/xhtml/vocab/#XHTMLRoleVocabulary and directory is one such value.  Please add that value to the list of legal @role values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91731</commentid>
    <comment_count>1</comment_count>
    <who name="Shane McCarron">shane</who>
    <bug_when>2013-08-07 15:47:05 +0000</bug_when>
    <thetext>As a follow up, I note that HTML5 references http://www.w3.org/TR/wai-aria/roles#role_definitions for the list of role values.  This is a similar list to the one I referenced, and also includes &apos;directory&apos; as a legal value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91732</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2013-08-07 16:52:31 +0000</bug_when>
    <thetext>The HTML spec disallows particular role values on particular elements. Not all role values are actually allowed on every element.

In this case, the spec explicitly and intentionally disallows role=directory for the &lt;section&gt; element; see the table here:

  http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics

Cc&apos;ing Steve Faulkner so that he can comment on the rationale for that. But moving this to resolved=wontfix due to the fact that as far as I can tell the validator is in conformance with the current requirements in the HTML spec here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91884</commentid>
    <comment_count>3</comment_count>
    <who name="steve faulkner">faulkner.steve</who>
    <bug_when>2013-08-12 11:57:30 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; As a follow up, I note that HTML5 references
&gt; http://www.w3.org/TR/wai-aria/roles#role_definitions for the list of role
&gt; values.  This is a similar list to the one I referenced, and also includes
&gt; &apos;directory&apos; as a legal value.

Hi Shane, as Mike pointed out the ARIA spec allows host languages to set restrictions on use of role vales dependent on the native semantics.[1]

These restrictions are defined in HTML in [2] and [3].


[1] http://www.w3.org/TR/wai-aria/host_languages#host_general_conflict
[2] http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics
[3] http://www.w3.org/html/wg/drafts/html/master/dom.html#sec-implicit-aria-semantics</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>