Skip to content

Commit 5248c02

Browse files
author
Sanders Kleinfeld
committed
Updating samples to validate against latest HTMLBook section heading specs.
1 parent ed32fde commit 5248c02

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

samples/alices_adventures_in_wonderland.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
<body data-type="book">
1515
<h1>Alice's Adventures in Wonderland</h1>
1616
<section data-type="titlepage">
17-
<h1>
18-
Alice's Adventures in Wonderland
19-
</h1>
20-
<h2 data-type="author">By Lewis Carroll</h2>
21-
<h2 data-type="subtitle">The Millennium Fulcrum Edition 3.0</h2>
17+
<header>
18+
<h1>Alice's Adventures in Wonderland</h1>
19+
<p data-type="author">By Lewis Carroll</p>
20+
<p data-type="subtitle">The Millennium Fulcrum Edition 3.0</p>
21+
</header>
2222
</section>
2323
<nav data-type="toc">
2424
<ol xmlns:h="http://www.w3.org/1999/xhtml" type="I"><li><a href="#link2HCH0001">

samples/htmlbook.html

+9-5
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,11 @@
1515
</figure>
1616
<!-- body must have h1 child with book title -->
1717
<section data-type="titlepage" class="titlepage">
18-
<h1>HTMLBook Sample</h1>
19-
<h2 data-type="subtitle">Optional Subtitle</h2>
20-
<p data-type="author">O’Reilly Media</p>
18+
<header>
19+
<h1>HTMLBook Sample</h1>
20+
<p data-type="subtitle">Optional Subtitle</p>
21+
<p data-type="author">O’Reilly Media</p>
22+
</header>
2123
</section>
2224
<section data-type="copyright-page">
2325
<h1>HTMLBook Sample</h1>
@@ -300,8 +302,10 @@ <h2>Multimedia Interactive</h2>
300302
</section>
301303
</section>
302304
<section data-type="chapter" class="chapter" id="chapter02">
303-
<h1>Chapter 2. Another Chapter</h1>
304-
<h2 data-type="subtitle">This is the chapter's subtitle</h2>
305+
<header>
306+
<h1>Chapter 2. Another Chapter</h1>
307+
<p data-type="subtitle">This is the chapter's subtitle</p>
308+
</header>
305309
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean eros sapien, iaculis eget
306310
egestas eu, tempus eu tellus. Aliquam in facilisis sapien. Nulla blandit, ligula vel
307311
auctor facilisis, quam felis rhoncus arcu, non rhoncus nulla felis sed est. Pellentesque

0 commit comments

Comments
 (0)