Re: possible respec note issue?

Yes, this is a recent change in ReSpec to support accessibility. 
Use an HTML5 validator, or an HTML4+ARIA validator.


On Apr 12, 2013, at 1:47 PM, Shane McCarron <ahby@aptest.com> wrote:

> FWIW as far as I am concerned that is a legal aria role value.  See http://www.w3.org/1999/xhtml/vocab/ for those values.  If the validator is not permitting those, I would consider it a bug in the validator.
> 
> 
> On Fri, Apr 12, 2013 at 3:42 PM, <Frederick.Hirsch@nokia.com> wrote:
>> In using div or p with class note I observe that respec output is not valid. I'm not sure why that output is being created in the first place, but maybe there is a reason.
>> 
>> if in ReSpec source I create a note thus (Overview.src.html):
>> 
>>           <p class="note">
>>             The IETF PKIX WG "ESSCertIDv2 update for RFC 3161"
>>             should be consulted when referencing
>>             RFC 3161 [[RFC3161-PKIX-UPDATE-9]]. 
>>           </p>
>> 
>> in the output (Overview.html)  I get something like this
>> 
>>  <div class="note"><div class="note-title" role="heading" aria-level="5"><span>Note</span></div><p class="">
>>             The IETF PKIX WG "ESSCertIDv2 update for RFC 3161"
>>             should be consulted when referencing
>>             RFC 3161 [<cite><a class="bibref" href="#bib-RFC3161-PKIX-UPDATE-9">RFC3161-PKIX-UPDATE-9</a></cite>]. 
>>           </p></div>
>> 
>> This causes a validation error 
>> 
>> Validation Output: 1 Error
>> 
>>         •
>> <error.png>
>> Line 1572, Column 82: Bad value heading for attribute role on element div.
>> …="note-title" role="heading" aria-level="5"><span>Note</span></div><p class="">
>> 
>> Wouldn't it be better just to not create all the extra stuff  *and just keep it
>> 
>> <div class="note"> 
>> content
>> </div>
>> 
>> I did not notice this behavior earlier so maybe this is the result of a recent change?
>> 
>> * extra stuff: <div class="note-title" role="heading" aria-level="5"><span>Note</span></div><p class="">
>> 
>> thanks
>> 
>> regards, Frederick
>> 
>> Frederick Hirsch
>> Nokia
>> 

Received on Friday, 12 April 2013 21:23:08 UTC