Skip to content

Commit 227a270

Browse files
authored
Warn about improper RFC2119 usage, and about example without id (#147)
1 parent fdf979f commit 227a270

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

index.bs

+7-6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Abstract: This specification defines a JavaScript API to enable web developers t
1717
Abstract: It enables developers to use scripting to generate text-to-speech output and to use speech recognition as an input for forms, continuous dictation and control.
1818
Abstract: The JavaScript API allows web pages to control activation and timing and to handle results and alternatives.
1919
Markup Shorthands:css no, markdown yes, dfn yes
20+
Complain about:accidental-2119 yes, missing-example-ids yes
2021
</pre>
2122

2223
<pre class=biblio>
@@ -1054,7 +1055,7 @@ These events do not bubble and are not cancelable.
10541055

10551056
<h3 id="examples-recognition">Speech Recognition Examples</h3>
10561057

1057-
<div class="example">
1058+
<div class="example" id="input-field">
10581059
<p>Using speech recognition to fill an input-field and perform a web search.</p>
10591060

10601061
<pre class="lang-html">
@@ -1075,7 +1076,7 @@ These events do not bubble and are not cancelable.
10751076
</pre>
10761077
</div>
10771078

1078-
<div class="example">
1079+
<div class="example" id="fill-option-list">
10791080
<p>Using speech recognition to fill an options list with alternative speech results.</p>
10801081

10811082
<pre class="lang-html">
@@ -1103,7 +1104,7 @@ These events do not bubble and are not cancelable.
11031104
</pre>
11041105
</div>
11051106

1106-
<div class="example">
1107+
<div class="example" id="fill-textarea">
11071108
<p>Using continuous speech recognition to fill a textarea.</p>
11081109

11091110
<pre class="lang-html">
@@ -1144,7 +1145,7 @@ These events do not bubble and are not cancelable.
11441145
</pre>
11451146
</div>
11461147

1147-
<div class="example">
1148+
<div class="example" id="continuous-recognition">
11481149
<p>Using continuous speech recognition, showing final results in black and interim results in grey.</p>
11491150

11501151
<pre class="lang-html">
@@ -1199,7 +1200,7 @@ These events do not bubble and are not cancelable.
11991200

12001201
<h3 id="examples-synthesis">Speech Synthesis Examples</h3>
12011202

1202-
<div class="example">
1203+
<div class="example" id="speak-text">
12031204
<p>Spoken text.</p>
12041205

12051206
<pre class="lang-html">
@@ -1209,7 +1210,7 @@ These events do not bubble and are not cancelable.
12091210
</pre>
12101211
</div>
12111212

1212-
<div class="example">
1213+
<div class="example" id="speak-text-advanced">
12131214
<p>Spoken text with attributes and events.</p>
12141215

12151216
<pre class="lang-html">

0 commit comments

Comments
 (0)