Skip to content

Commit 74c97c0

Browse files
committed
Update ids
1 parent acc140a commit 74c97c0

10 files changed

+389
-317
lines changed

partials/section.about.hbs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
<aside id="section__about" aria-labelledby="title__about"><!-- Start of #section__about -->
2-
<h2 id="title__about">About</h2>
3-
1+
<!-- Start of #about -->
2+
<aside id="about" aria-labelledby="title-about">
3+
<h2 id="title-about">About</h2>
44
<p>
55
Accessible, semantic markup patterns for HTML content. Uses the full <a rel="external noopener" href="http://html5doctor.com/element-index/"><cite>HTML5 Doctor Element Index</cite></a>, minus the <code translate="no">&lt;command&gt;</code> and <code translate="no">&lt;menu&gt;</code> tags.
66
</p>
77
<p>
88
Reference <a rel="external noopener" href="http://alistairduggin.co.uk/">Alistair Duggin</a>'s <a rel="external noopener" href="http://aduggin.github.io/accessibility-fails/"><cite>Accessibility Fails</cite></a> for common markup pattern accessibility mistakes, and <a rel="external noopener" href="http://pauljadam.com/">Paul J. Adam</a>'s <a rel="external noopener" href="http://pauljadam.com/demos/landmarks.html"><cite>WAI-ARIA Landmarks Site Navigation Structure Demo</cite></a> for semantic, accessible page landmarks.
99
</p>
10-
</aside><!-- End of #section__about -->
10+
</aside>
11+
<!-- End of #about -->

partials/section.embedded.hbs

Lines changed: 53 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,51 @@
1-
<section id="section__embedded" aria-labelledby="title__embedded"><!-- Start of #section__embedded -->
2-
<h2 id="title__embedded">Embedded</h2>
1+
<!-- Start of #section-embedded -->
2+
<section id="section-embedded" aria-labelledby="title-embedded">
3+
<h2 id="title-embedded">Embedded</h2>
34

4-
<h3 id="subsection__image">Image</h3><!-- Start of #subsection__image -->
5+
<!-- Start of #subsection-image -->
6+
<h3 id="subsection-image">Image</h3>
57
<img
68
src="http://placehold.it/600x400?text=Image+Example"
7-
alt="Image Exmaple" /><!-- End of #subsection__image -->
9+
alt="Image Exmaple" />
10+
<!-- End of #subsection-image -->
811

9-
<h3 id="subsection__broken-image">Broken Image</h3><!-- Start of #subsection__broken-image -->
12+
<!-- Start of #subsection-broken-image -->
13+
<h3 id="subsection-broken-image">Broken Image</h3>
1014
<img
1115
src="nope"
12-
alt="Broken Image" /><!-- End of #subsection__broken-image -->
16+
alt="Broken Image" />
17+
<!-- End of #subsection-broken-image -->
1318

14-
<h3 id="subsection__figure-with-caption">Figure with Caption</h3><!-- Start of #subsection__figure-with-caption -->
19+
<!-- Start of #subsection-figure-with-caption -->
20+
<h3 id="subsection-figure-with-caption">Figure with Caption</h3>
1521
<figure>
1622
<img
1723
src="http://placehold.it/400x250?text=Figure+Example"
1824
alt="Figure Example" />
1925
<figcaption>
2026
An example figure caption.
2127
</figcaption>
22-
</figure><!-- End of #subsection__figure-with-caption -->
28+
</figure>
29+
<!-- End of #subsection-figure-with-caption -->
2330

24-
<h3 id="subsection__inline-svg">Inline SVG</h3><!-- Start of #subsection__inline-svg -->
31+
<!-- Start of #subsection-inline-svg -->
32+
<h3 id="subsection-inline-svg">Inline SVG</h3>
2533
<figure>
2634
<svg
27-
aria-labelledby="svg__title svg__description"
35+
aria-labelledby="svg-title svg-description"
2836
role="img"
2937
height="162"
3038
width="168"
3139
viewBox="0 0 28 27"
3240
xmlns="http://www.w3.org/2000/svg">
33-
<title id="svg__title">A crab</title>
34-
<!--[if !IE]> --><desc id="svg__description">A solid black illustration of a crab.</desc><!-- <![endif]-->
41+
<title id="svg-title">A crab</title>
42+
<!--[if !IE]> --><desc id="svg-description">A solid black illustration of a crab.</desc><!-- <![endif]-->
3543
<path fill="#000000" d="M28.044,16.791 C26.087,18.748 23.728,18.633 22.257,18.285 C22.405,17.861 22.53,17.441 22.632,17.033 C22.798,17.043 22.961,17.058 23.139,17.058 C25.093,17.058 27.603,16.308 28.96,12.913 C29.075,12.626 28.935,12.3 28.647,12.186 C28.362,12.071 28.034,12.209 27.919,12.497 C26.723,15.487 24.497,16.018 22.852,15.946 C22.905,15.626 22.946,15.317 22.968,15.032 C23.967,14.782 29.374,11.151 28.999,5.999 C28.773,2.892 25.811,-0.282 22.245,0.753 C22.561,0.915 25.731,2.304 24.933,6.958 C24.933,6.958 21.65,5.677 21.27,2.999 C21.27,2.999 18.375,6.958 24.19,11.329 C24.19,11.329 22.142,13.261 19.046,11.12 C18.826,10.911 18.598,10.718 18.36,10.54 L18.36,9 L17.24,9 L17.24,9.869 C16.538,9.541 15.786,10.08 15,10.08 C14.214,10.08 13.462,9.541 12.761,9.869 L12.761,9 L11.641,9 L11.641,10.541 C11.402,10.719 11.173,10.912 10.953,11.121 C7.858,13.262 5.81,11.33 5.81,11.33 C11.624,6.959 8.729,3 8.729,3 C8.349,5.678 5.067,6.959 5.067,6.959 C4.267,2.305 7.437,0.916 7.753,0.754 C4.187,-0.281 1.226,2.893 0.999,6 C0.624,11.152 6.031,14.783 7.03,15.033 C7.053,15.318 7.094,15.627 7.146,15.947 C5.501,16.019 3.275,15.488 2.079,12.498 C1.965,12.211 1.637,12.072 1.351,12.187 C1.064,12.3 0.924,12.626 1.038,12.914 C2.395,16.309 4.906,17.059 6.859,17.059 C7.037,17.059 7.2,17.043 7.366,17.034 C7.468,17.442 7.594,17.862 7.741,18.286 C6.27,18.634 3.911,18.749 1.954,16.792 C1.735,16.573 1.381,16.573 1.162,16.792 C0.943,17.011 0.943,17.364 1.162,17.583 C2.721,19.142 4.511,19.587 6.043,19.587 C6.845,19.587 7.561,19.462 8.151,19.316 C8.233,19.5 8.317,19.681 8.409,19.861 C6.471,20.74 4.358,22.316 4.358,25.029 C4.358,25.338 4.609,25.588 4.917,25.588 C5.227,25.588 5.478,25.338 5.478,25.029 C5.478,22.9 7.272,21.609 8.938,20.863 C9.049,21.045 9.182,21.213 9.332,21.369 C9.434,21.506 9.543,21.639 9.652,21.769 C8.879,22.156 8.108,22.73 7.851,23.576 C7.572,24.502 7.958,25.502 9.001,26.545 C9.11,26.654 9.254,26.709 9.397,26.709 C9.541,26.709 9.683,26.654 9.793,26.545 C10.012,26.326 10.012,25.971 9.793,25.752 C9.064,25.023 8.772,24.4 8.923,23.902 C9.09,23.345 9.783,22.918 10.465,22.629 C11.622,23.666 13.111,24.356 14.997,24.356 C16.883,24.356 18.372,23.667 19.53,22.629 C20.212,22.918 20.904,23.346 21.071,23.902 C21.222,24.4 20.929,25.023 20.201,25.752 C19.982,25.971 19.982,26.326 20.201,26.545 C20.31,26.654 20.454,26.709 20.596,26.709 C20.74,26.709 20.883,26.654 20.992,26.545 C22.036,25.502 22.423,24.502 22.142,23.576 C21.885,22.73 21.114,22.156 20.341,21.769 C20.45,21.638 20.56,21.505 20.661,21.369 C20.81,21.213 20.944,21.045 21.055,20.863 C22.722,21.609 24.515,22.9 24.515,25.029 C24.515,25.338 24.766,25.588 25.076,25.588 C25.386,25.588 25.636,25.338 25.636,25.029 C25.636,22.316 23.523,20.74 21.585,19.861 C21.677,19.681 21.762,19.5 21.843,19.316 C22.434,19.462 23.15,19.587 23.951,19.587 C25.484,19.587 27.273,19.142 28.832,17.583 C29.051,17.364 29.051,17.011 28.832,16.792 C28.617,16.572 28.263,16.572 28.044,16.791 Z" transform="translate(-1)" opacity=".9"/>
3644
</svg>
3745
<figcaption>
3846
<a rel="external noopener" href="https://thenounproject.com/search/?q=crab&i=583446">Crab by Hea Poh Lin</a> from the Noun Project
3947
</figcaption>
40-
</figure><!-- End of #subsection__inline-svg -->
48+
</figure>
4149

4250
<h3>Notes:</h3>
4351
<ul>
@@ -51,8 +59,10 @@
5159
<small>Add whitespace around the <code translate="no">use</code> element in a <abbr>SVG</abbr> icon system to <a rel="external noopener" href="http://simplyaccessible.com/article/7-solutions-svgs/#acc-heading-5">prevent a focus bug with Safari 10</a>.</small>
5260
</li>
5361
</ul>
62+
<!-- End of #subsection-inline-svg -->
5463

55-
<h3 id="subsection__picture">Picture</h3><!-- Start of #subsection__picture -->
64+
<!-- Start of #subsection-picture -->
65+
<h3 id="subsection-picture">Picture</h3>
5666
<picture>
5767
<source
5868
media="(min-width: 40em)"
@@ -64,25 +74,31 @@
6474
<img
6575
src="http://placehold.it/600x400?text=Img+Fallback"
6676
alt="Picture Element" />
67-
</picture><!-- End of #subsection__picture -->
77+
</picture>
78+
<!-- End of #subsection-picture -->
6879

69-
<h3 id="subsection__image-with-srcset-and-sizes">Image with Srcset and Sizes</h3><!-- Start of #subsection__image-with-srcset-and-sizes -->
80+
<!-- Start of #subsection-image-with-srcset-and-sizes -->
81+
<h3 id="subsection-image-with-srcset-and-sizes">Image with Srcset and Sizes</h3>
7082
<img
7183
srcset="http://placehold.it/1024x768/7ED321/ffffff/?text=Large 1024w,
7284
http://placehold.it/1024x768/F5A623/ffffff/?text=Medium 640w,
7385
http://placehold.it/320x240/50E3C2/ffffff/?text=Small 320w"
7486
sizes="(min-width: 36em) 50vw, 100vw"
7587
src="http://placehold.it/600x400?text=Img+Fallback"
76-
alt="Image with Srcset and Sizes Example" /><!-- End of #subsection__image-with-srcset-and-sizes -->
88+
alt="Image with Srcset and Sizes Example" />
89+
<!-- End of #subsection-image-with-srcset-and-sizes -->
7790

78-
<h3 id="subsection__iframe">Iframe</h3><!-- Start of #subsection__iframe -->
91+
<!-- Start of #subsection-iframe -->
92+
<h3 id="subsection-iframe">Iframe</h3>
7993
<iframe
8094
src="about:blank"
8195
title="about:blank"
82-
name="iframe"><!-- End of #subsection__iframe -->
96+
name="iframe">
8397
</iframe>
98+
<!-- End of #subsection-iframe -->
8499

85-
<h3 id="subsection__audio">Audio</h3><!-- Start of #subsection__audio -->
100+
<!-- Start of #subsection-audio -->
101+
<h3 id="subsection-audio">Audio</h3>
86102
<audio controls>
87103
<source
88104
src="http://www.noiseaddicts.com/samples_1w72b820/4353.mp3"
@@ -100,9 +116,11 @@
100116
kind="captions" />
101117
Your browser does not support the <code translate="no">&lt;audio&gt;</code> element.
102118
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a> or <a download href="http://www.noiseaddicts.com/samples_1w72b820/4353.mp3">download a file</a> for offline listening.
103-
</audio><!-- End of #subsection__audio -->
119+
</audio>
120+
<!-- End of #subsection-audio -->
104121

105-
<h3 id="subsection__video">Video</h3><!-- Start of #subsection__video -->
122+
<!-- Start of #subsection-video -->
123+
<h3 id="subsection-video">Video</h3>
106124
<video
107125
controls
108126
poster="http://placehold.it/854x480?text=Video+Poster">
@@ -122,14 +140,16 @@
122140
kind="captions" />
123141
Your browser does not support the <code translate="no">&lt;video&gt;</code> element.
124142
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a> or <a download href="http://clips.vorwaerts-gmbh.de/VfE_html5.mp4">download a file</a> for offline viewing.
125-
</video><!-- End of #subsection__video -->
143+
</video>
126144

127145
<h3>Notes:</h3>
128146
<p>
129147
<small>Accessibility errors concerning the video's missing audio description should go away once the <code translate="no">&lt;track&gt;</code>'s source is linked to a valid caption file.</small>
130148
</p>
149+
<!-- End of #subsection-video -->
131150

132-
<h3 id="subsection__object">Object</h3><!-- Start of #subsection__object -->
151+
<!-- Start of #subsection-object -->
152+
<h3 id="subsection-object">Object</h3>
133153
<object>
134154
<param
135155
name="movie"
@@ -153,19 +173,23 @@
153173
</embed>
154174
Your browser does not support the <code translate="no">&lt;object&gt;</code> element.
155175
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a> or <a rel="external noopener" href="https://www.youtube.com/watch?v=pDHzK3Xe7Yw">view the video on YouTube</a>.
156-
</object><!-- End of #subsection__object -->
176+
</object>
177+
<!-- End of #subsection-object -->
157178

158-
<h3 id="subsection__canvas">Canvas</h3><!-- Start of #subsection__canvas -->
179+
<!-- Start of #subsection-canvas -->
180+
<h3 id="subsection-canvas">Canvas</h3>
159181
<canvas
160182
id="myCanvas"
161183
width="400"
162184
height="400">
163185
Your browser does not support the <code translate="no">&lt;canvas&gt;</code> element.
164186
Please <a rel="external noopener" href="http://browsehappy.com/">consider upgrading your browser</a>.
165-
</canvas
187+
</canvas>
166188

167189
<h3>Notes:</h3>
168190
<p>
169191
<small>Add <code translate="no">role="presentation"</code> to <code translate="no">&lt;track&gt;</code> to <a rel="external noopener" href="https://twitter.com/stevefaulkner/status/1039470607719694336">mute epeated announcement of graphic role by some screen readers</a>.
170-
</p>><!-- End of #subsection__canvas -->
171-
</section><!-- End of #section__embedded -->
192+
</p>
193+
<!-- End of #subsection-canvas -->
194+
</section>
195+
<!-- End of #section-embedded -->

partials/section.footer.hbs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
<footer id="section__credit" aria-labelledby="title__credit" role="contentinfo"><!-- Start of #section__credit -->
2-
<h2 id="title__credit">Credit</h2>
3-
1+
<!-- Start of #section-credit -->
2+
<footer id="section-credit" aria-labelledby="title-credit" role="contentinfo">
3+
<h2 id="title-credit">Credit</h2>
44
<p>
55
Inspired by <a rel="external noopener" href="http://mrmrs.cc/">Adam Morse</a>'s <a rel="external noopener" href="https://github.com/mrmrs/html"><cite>mrmrs/html</cite></a>.
66
</p>
7-
</footer><!-- End of #section__credit -->
7+
</footer>
8+
<!-- End of #section-credit -->

0 commit comments

Comments
 (0)