Skip to content

Commit 2eb283a

Browse files
Warn about improper RFC2119 usage, and about example without id (#147)
SHA: 227a270 Reason: push, by padenot Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0bd8154 commit 2eb283a

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

index.html

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta content="Bikeshed version b25686b9f, updated Fri Mar 14 14:15:20 2025 -0700" name="generator">
99
<link href="https://webaudio.github.io/web-speech-api/" rel="canonical">
1010
<link href="https://www.w3.org/2008/site/images/favicon.ico" rel="icon">
11-
<meta content="bc21038e415f32a2eb830e78a729b8e5e5be27fa" name="revision">
11+
<meta content="227a27064a12bfd4258303b33e1acd1bbc3d1578" name="revision">
1212
<meta content="dark light" name="color-scheme">
1313
<link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
1414
<style>/* Boilerplate: style-autolinks */
@@ -696,7 +696,7 @@
696696
<div class="head">
697697
<p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
698698
<h1 class="p-name no-ref" id="title">Web Speech API</h1>
699-
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#CG-DRAFT">Draft Community Group Report</a>, <time class="dt-updated" datetime="2025-04-14">14 April 2025</time></p>
699+
<p id="w3c-state"><a href="https://www.w3.org/standards/types/#CG-DRAFT">Draft Community Group Report</a>, <time class="dt-updated" datetime="2025-04-23">23 April 2025</time></p>
700700
<details open>
701701
<summary>More details about this document</summary>
702702
<div data-fill-with="spec-metadata">
@@ -1679,8 +1679,8 @@ <h4 class="heading settled" data-level="4.2.8" id="speechsynthesisvoice-attribut
16791679
<h2 class="heading settled" data-level="5" id="examples"><span class="secno">5. </span><span class="content">Examples</span><a class="self-link" href="#examples"></a></h2>
16801680
<p><em>This section is non-normative.</em></p>
16811681
<h3 class="heading settled" data-level="5.1" id="examples-recognition"><span class="secno">5.1. </span><span class="content">Speech Recognition Examples</span><a class="self-link" href="#examples-recognition"></a></h3>
1682-
<div class="example" id="example-6028c029">
1683-
<a class="self-link" href="#example-6028c029"></a>
1682+
<div class="example" id="input-field">
1683+
<a class="self-link" href="#input-field"></a>
16841684
<p>Using speech recognition to fill an input-field and perform a web search.</p>
16851685
<pre class="lang-html highlight"><c- p>&lt;</c-><c- f>script</c-> <c- e>type</c-><c- o>=</c-><c- s>"text/javascript"</c-><c- p>></c->
16861686
<c- a>var</c-> recognition <c- o>=</c-> <c- ow>new</c-> SpeechRecognition<c- p>();</c->
@@ -1698,8 +1698,8 @@ <h3 class="heading settled" data-level="5.1" id="examples-recognition"><span cla
16981698
<c- p>&lt;/</c-><c- f>form</c-><c- p>></c->
16991699
</pre>
17001700
</div>
1701-
<div class="example" id="example-e180055f">
1702-
<a class="self-link" href="#example-e180055f"></a>
1701+
<div class="example" id="fill-option-list">
1702+
<a class="self-link" href="#fill-option-list"></a>
17031703
<p>Using speech recognition to fill an options list with alternative speech results.</p>
17041704
<pre class="lang-html highlight"><c- p>&lt;</c-><c- f>script</c-> <c- e>type</c-><c- o>=</c-><c- s>"text/javascript"</c-><c- p>></c->
17051705
<c- a>var</c-> recognition <c- o>=</c-> <c- ow>new</c-> SpeechRecognition<c- p>();</c->
@@ -1724,8 +1724,8 @@ <h3 class="heading settled" data-level="5.1" id="examples-recognition"><span cla
17241724
<c- p>&lt;</c-><c- f>button</c-> <c- e>onclick</c-><c- o>=</c-><c- s>"start()"</c-><c- p>></c->Click to Speak<c- p>&lt;/</c-><c- f>button</c-><c- p>></c->
17251725
</pre>
17261726
</div>
1727-
<div class="example" id="example-cd7b2fc0">
1728-
<a class="self-link" href="#example-cd7b2fc0"></a>
1727+
<div class="example" id="fill-textarea">
1728+
<a class="self-link" href="#fill-textarea"></a>
17291729
<p>Using continuous speech recognition to fill a textarea.</p>
17301730
<pre class="lang-html highlight"><c- p>&lt;</c-><c- f>textarea</c-> <c- e>id</c-><c- o>=</c-><c- s>"textarea"</c-> <c- e>rows</c-><c- o>=</c-><c- s>10</c-> <c- e>cols</c-><c- o>=</c-><c- s>80</c-><c- p>>&lt;/</c-><c- f>textarea</c-><c- p>></c->
17311731
<c- p>&lt;</c-><c- f>button</c-> <c- e>id</c-><c- o>=</c-><c- s>"button"</c-> <c- e>onclick</c-><c- o>=</c-><c- s>"toggleStartStop()"</c-><c- p>>&lt;/</c-><c- f>button</c-><c- p>></c->
@@ -1763,8 +1763,8 @@ <h3 class="heading settled" data-level="5.1" id="examples-recognition"><span cla
17631763
<c- p>&lt;/</c-><c- f>script</c-><c- p>></c->
17641764
</pre>
17651765
</div>
1766-
<div class="example" id="example-bd8b6e17">
1767-
<a class="self-link" href="#example-bd8b6e17"></a>
1766+
<div class="example" id="continuous-recognition">
1767+
<a class="self-link" href="#continuous-recognition"></a>
17681768
<p>Using continuous speech recognition, showing final results in black and interim results in grey.</p>
17691769
<pre class="lang-html highlight"><c- p>&lt;</c-><c- f>button</c-> <c- e>id</c-><c- o>=</c-><c- s>"button"</c-> <c- e>onclick</c-><c- o>=</c-><c- s>"toggleStartStop()"</c-><c- p>>&lt;/</c-><c- f>button</c-><c- p>></c->
17701770
<c- p>&lt;</c-><c- f>div</c-> <c- e>style</c-><c- o>=</c-><c- s>"border:dotted;padding:10px"</c-><c- p>></c->
@@ -1815,16 +1815,16 @@ <h3 class="heading settled" data-level="5.1" id="examples-recognition"><span cla
18151815
</pre>
18161816
</div>
18171817
<h3 class="heading settled" data-level="5.2" id="examples-synthesis"><span class="secno">5.2. </span><span class="content">Speech Synthesis Examples</span><a class="self-link" href="#examples-synthesis"></a></h3>
1818-
<div class="example" id="example-5b46b7f4">
1819-
<a class="self-link" href="#example-5b46b7f4"></a>
1818+
<div class="example" id="speak-text">
1819+
<a class="self-link" href="#speak-text"></a>
18201820
<p>Spoken text.</p>
18211821
<pre class="lang-html highlight"><c- p>&lt;</c-><c- f>script</c-> <c- e>type</c-><c- o>=</c-><c- s>"text/javascript"</c-><c- p>></c->
18221822
speechSynthesis<c- p>.</c->speak<c- p>(</c-><c- ow>new</c-> SpeechSynthesisUtterance<c- p>(</c-><c- t>'Hello World'</c-><c- p>));</c->
18231823
<c- p>&lt;/</c-><c- f>script</c-><c- p>></c->
18241824
</pre>
18251825
</div>
1826-
<div class="example" id="example-75aea718">
1827-
<a class="self-link" href="#example-75aea718"></a>
1826+
<div class="example" id="speak-text-advanced">
1827+
<a class="self-link" href="#speak-text-advanced"></a>
18281828
<p>Spoken text with attributes and events.</p>
18291829
<pre class="lang-html highlight"><c- p>&lt;</c-><c- f>script</c-> <c- e>type</c-><c- o>=</c-><c- s>"text/javascript"</c-><c- p>></c->
18301830
<c- a>var</c-> u <c- o>=</c-> <c- ow>new</c-> SpeechSynthesisUtterance<c- p>();</c->

0 commit comments

Comments
 (0)