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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

John Bilicki III
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
Reply | Threaded
Open this post in threaded view
|

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

Steve Faulkner-2
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

On 20 September 2014 22:40, John Bilicki III <[hidden email]> 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