Re: 'Section lacks heading' invalid for aside/section/header

>
> Validating the following generates the error 'Section lacks heading'...


it is a 'warning' not an error, it is not a MUST requirement its a SHOULD

It seems more logical to accept the generic 'header' element as a valid
> header for sidebar section elements.
>

header [1] is not a generic heading [2], it has a different meaning , for
example header does not contribute to the document outline, and different
accessibility layer semantics <hx> = heading <header> = banner when scoped
to <body>.


[1]
http://www.w3.org/html/wg/drafts/html/master/sections.html#the-header-element
[2]
http://www.w3.org/html/wg/drafts/html/master/sections.html#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements


--

Regards

SteveF
HTML 5.1 <http://www.w3.org/html/wg/drafts/html/master/>

On 20 September 2014 22:40, John Bilicki III <jabcreations@hotmail.com>
wrote:

>  Greetings,
>
> Validating the following generates the error 'Section lacks heading'...
>
> ____________________________________________________________
> <!DOCTYPE html>
> <html>
> <head>
> <title>XHTML5 Test</title>
> </head>
>
> <body>
>
> <main><article><p>...</p></article></main>
>
> <aside>
> <section>
> <header><span>Search Website...</span></header>
> <div><span>The sidebar, <em>not</em> to be inside an article
> element.</span></div>
> </section>
>
> </body>
> </html>
>
> ____________________________________________________________
>
> It seems more logical to accept the generic 'header' element as a valid
> header for sidebar section elements.
>
> John Bilicki
>

Received on Sunday, 21 September 2014 09:56:51 UTC