forked from davidtodd/landmarks
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Cycle betwixt multiple main regions (#373)
Pages should not really have more than one, but if they do, this seems the most sensible approach. Closes #371
- Loading branch information
Showing
2 changed files
with
47 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Test cycling through multiple main regions</title> | ||
</head> | ||
<body> | ||
<header> | ||
<h1>Test cycling through multiple <code>main</code> regions</h1> | ||
</header> | ||
<main> | ||
<p><strong>Don't try this at home, folks! You're not supposed to have more than one <code>main</code> region per page, according to both <a href="https://html.spec.whatwg.org/multipage/grouping-content.html#the-main-element">HTML</a> and <a href="https://www.w3.org/TR/wai-aria-1.1/#main">ARIA</a>.</strong> | ||
</main> | ||
<aside> | ||
<p>Sunshine, lollipops and rainbows everywhere…</p> | ||
</aside> | ||
<main> | ||
<p>The main event, again!</p> | ||
</main> | ||
<aside> | ||
<p>Yet another diversion.</p> | ||
</aside> | ||
<main> | ||
<p>The real deal.</p> | ||
</main> | ||
<footer> | ||
<p>Fin.</p> | ||
</footer> | ||
</body> | ||
</html> |