Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

Commit

Permalink
allow multiple main elements when only one is visible
Browse files Browse the repository at this point in the history
fixes #761
  • Loading branch information
stevefaulkner committed Apr 9, 2017
1 parent 4794033 commit d53f789
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion sections/semantics-grouping-content.include
Expand Up @@ -1641,7 +1641,25 @@
information, site logos and banners and search forms (unless the document or application's main
function is that of a search form).

There must not be more than one <{main}> in a document.
There must not be more than one visible <{main}> element in a document. If greater than one
<{main}> element is present in a document, all other instances must be hidden using the <{hidden}> attribute.

<div class="example">
<pre highlight="html">
<!-- conforming example -->
<main></main>
<main hidden></main>
<main hidden></main>

<!-- non-conforming example -->
<main></main>
...
<main></main>
...
<main></main>
</pre>
</div>


Authors must not include the <{main}> element as a descendant of an <{article}>,
<{aside}>, <{footer}>, <code>header</code> or <{nav}> element.
Expand Down

0 comments on commit d53f789

Please sign in to comment.