Skip to content

Commit 0b0307d

Browse files
authored
[Markdown] (Web/API] Remove unsupported elements from Web/API (#8504)
1 parent 55edd01 commit 0b0307d

File tree

15 files changed

+57
-93
lines changed

15 files changed

+57
-93
lines changed

files/en-us/web/api/document/xmlencoding/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
<p>...the result should be "UTF-16".</p>
2525

26-
<p>However, Firefox 3.0 includes information on endianness (e.g., UTF-16BE for big endian encoding), and while this extra information is removed as of Firefox 3.1b3, Firefox 3.1b3 is still consulting the file's encoding, rather than the XML Declaration as the spec defines it ("An attribute specifying, <u><em>as part of the XML declaration</em></u>, the encoding of this document.").</p>
26+
<p>However, Firefox 3.0 includes information on endianness (e.g., UTF-16BE for big endian encoding), and while this extra information is removed as of Firefox 3.1b3, Firefox 3.1b3 is still consulting the file's encoding, rather than the XML Declaration as the spec defines it ("An attribute specifying, <em>as part of the XML declaration</em>, the encoding of this document.").</p>
2727

2828
<h2 id="Specifications">Specifications</h2>
2929

files/en-us/web/api/element/getelementsbyclassname/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ <h3 id="Examining_the_results">Examining the results</h3>
8383

8484
<p>You can use either the {{domxref("HTMLCollection.item", "item()")}} method on the
8585
returned <code>HTMLCollection</code> or standard array syntax to examine individual
86-
elements in the collection. However <u><strong>the following code will not
87-
work</strong></u> as one might expect because <code>"matches"</code> will change as
86+
elements in the collection. However, the following code will not
87+
work as one might expect because <code>"matches"</code> will change as
8888
soon as any <code>"colorbox"</code> class is removed.</p>
8989

9090
<pre class="brush: js">var matches = element.getElementsByClassName('colorbox');

files/en-us/web/api/globaleventhandlers/onpointerdown/index.html

+26-41
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,35 @@ <h3 id="Value">Value</h3>
4848

4949
<h2 id="Example">Example</h2>
5050

51+
<h3>Responding to pointer down events</h3>
52+
5153
<p>This example demonstrates how to watch for and act upon <code>pointerdown</code> events
5254
using <code>onpointerdown</code>. You could also use <code>addEventListener()</code>, of
5355
course.</p>
5456

55-
<h4 id="JavaScript">JavaScript</h4>
57+
<h4 id="HTML">HTML</h4>
58+
59+
<pre class="brush: html">&lt;div id="target"&gt;
60+
Tap me, click me, or touch me!
61+
&lt;/div&gt;</pre>
62+
63+
<h4 id="CSS">CSS</h4>
64+
65+
<p>The CSS sets up the appearance of the target, and doesn't affect its functionality at all.</p>
66+
67+
<pre class="brush: css">#target {
68+
width: 400px;
69+
height: 30px;
70+
text-align: center;
71+
font: 16px "Open Sans", "Helvetica", sans-serif;
72+
color: white;
73+
background-color: blue;
74+
border: 2px solid darkblue;
75+
cursor: pointer;
76+
user-select: none;
77+
}</pre>
5678

57-
<p>First, let's look at the JavaScript code that handles the <code>pointerdown</code>
58-
event.</p>
79+
<h4 id="JavaScript">JavaScript</h4>
5980

6081
<pre class="brush: js">var targetBox = document.getElementById("target");
6182

@@ -105,56 +126,20 @@ <h4 id="JavaScript">JavaScript</h4>
105126
evt.preventDefault();
106127
}</pre>
107128

108-
<p>This code's job is to just restore the original text into the target box after the
129+
<p>This code restores the original text into the target box after the
109130
user's interaction with the element ends (for example, when they release the mouse
110131
button, or when they lift the stylus or finger from the screen).</p>
111132

112133
<p>In addition, the event's {{domxref("Event.preventDefault", "preventDefault()")}} method
113134
is called to ensure that the <code>mouseup</code> event isn't triggered unnecessarily.
114135
</p>
115136

116-
<details>
117-
<summary>
118-
<h4 id="HTML">HTML</h4>
119-
</summary>
120-
121-
<p>The HTML is extremely simple:</p>
122-
123-
<pre class="brush: html">&lt;div id="target"&gt;
124-
Tap me, click me, or touch me!
125-
&lt;/div&gt;</pre>
126-
</details>
127-
128-
<details>
129-
<summary>
130-
<h4 id="CSS">CSS</h4>
131-
</summary>
132-
133-
<p>The CSS sets up the appearance of the target, and doesn't affect its functionality at
134-
all.</p>
135-
136-
<pre class="brush: css">#target {
137-
width: 400px;
138-
height: 30px;
139-
text-align: center;
140-
font: 16px "Open Sans", "Helvetica", sans-serif;
141-
color: white;
142-
background-color: blue;
143-
border: 2px solid darkblue;
144-
cursor: pointer;
145-
user-select: none;
146-
-moz-user-select: none;
147-
-webkit-user-select: none;
148-
-ms-user-select: none;
149-
}</pre>
150-
</details>
151-
152137
<h4 id="Result">Result</h4>
153138

154139
<p>The resulting output is shown below. Try tapping, clicking, or touching the box and see
155140
what happens. For full effect, try it with a variety of pointer types.</p>
156141

157-
<p>{{EmbedLiveSample("Example", 450, 50)}}</p>
142+
<p>{{EmbedLiveSample("Responding_to_pointer_down_events", 450, 50)}}</p>
158143

159144
<h2 id="Specifications">Specifications</h2>
160145

files/en-us/web/api/htmlinputelement/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -176,19 +176,19 @@ <h2 id="Properties">Properties</h2>
176176
</tr>
177177
<tr>
178178
<td><code>maxLength</code></td>
179-
<td><em><code>long</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("maxlength", "input") }} attribute, containing the <u><strong>maximum number of characters</strong></u> (in Unicode code points) that the value can have. (If you set this to a negative number, an exception will be thrown.)</td>
179+
<td><em><code>long</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("maxlength", "input") }} attribute, containing the maximum number of characters (in Unicode code points) that the value can have. (If you set this to a negative number, an exception will be thrown.)</td>
180180
</tr>
181181
<tr>
182182
<td><code>min</code></td>
183183
<td><em><code>string</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("min", "input") }} attribute, containing the minimum (numeric or date-time) value for this item, which must not be greater than its maximum ({{htmlattrxref("max","input")}} attribute) value.</td>
184184
</tr>
185185
<tr>
186186
<td><code>minLength</code></td>
187-
<td><em><code>long</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("minlength", "input") }} attribute, containing the <u><strong>minimum number of characters</strong></u> (in Unicode code points) that the value can have. (If you set this to a negative number, an exception will be thrown.)</td>
187+
<td><em><code>long</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("minlength", "input") }} attribute, containing the minimum number of characters (in Unicode code points) that the value can have. (If you set this to a negative number, an exception will be thrown.)</td>
188188
</tr>
189189
<tr>
190190
<td><code>pattern</code></td>
191-
<td><em><code>string</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("pattern", "input") }} attribute, containing a <u><strong>regular expression</strong></u> that the control's value is checked against. Use the {{htmlattrxref("title","input")}} attribute to describe the pattern to help the user. This attribute applies when the value of the {{htmlattrxref("type","input")}} attribute is <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code> or <code>email</code>; otherwise it is ignored.</td>
191+
<td><em><code>string</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("pattern", "input") }} attribute, containing a regular expression that the control's value is checked against. Use the {{htmlattrxref("title","input")}} attribute to describe the pattern to help the user. This attribute applies when the value of the {{htmlattrxref("type","input")}} attribute is <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code> or <code>email</code>; otherwise it is ignored.</td>
192192
</tr>
193193
<tr>
194194
<td><code>placeholder</code></td>
@@ -216,7 +216,7 @@ <h2 id="Properties">Properties</h2>
216216
</tr>
217217
<tr>
218218
<td><code>size</code></td>
219-
<td><em><code>unsigned long</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("size", "input") }} attribute, containing <u><strong>visual size of the control</strong></u>. This value is in pixels unless the value of {{htmlattrxref("type","input")}} is <code>text</code> or <code>password</code>, in which case, it is an integer number of characters. Applies only when {{htmlattrxref("type","input")}} is set to <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code>, <code>email</code>, or <code>password</code>; otherwise it is ignored.</td>
219+
<td><em><code>unsigned long</code>:</em> <strong>Returns / Sets</strong> the element's {{ htmlattrxref("size", "input") }} attribute, containing visual size of the control. This value is in pixels unless the value of {{htmlattrxref("type","input")}} is <code>text</code> or <code>password</code>, in which case, it is an integer number of characters. Applies only when {{htmlattrxref("type","input")}} is set to <code>text</code>, <code>search</code>, <code>tel</code>, <code>url</code>, <code>email</code>, or <code>password</code>; otherwise it is ignored.</td>
220220
</tr>
221221
</tbody>
222222
</table>

files/en-us/web/api/paymentresponse/retry/index.html

-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ <h3 id="Return_value">Return value</h3>
100100

101101
<h2 id="Examples">Examples</h2>
102102

103-
<p><u><strong>try { await paymentRequest.retry(errorFields); } catch (DOMException err) {
104-
... }</strong></u></p>
105-
106103
<pre class="brush: js">async function doPaymentRequest() {
107104
const request = new PaymentRequest(methodData, details, options);
108105
const response = await request.show();

files/en-us/web/api/speechrecognitionevent/emma/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
<div>{{APIRef("Web Speech API")}}{{deprecated_header}}</div>
1717

1818
<p>The <strong><code>emma</code></strong> read-only property of the
19-
{{domxref("SpeechRecognitionEvent")}} interface returns an <cite>E</cite><cite>xtensible
19+
{{domxref("SpeechRecognitionEvent")}} interface returns an Extensible
2020
MultiModal Annotation markup language (EMMA) — XML — representation of the
21-
result.</cite></p>
21+
result.</p>
2222

2323
<div class="note">
2424
<p><strong>Note:</strong> EMMA is defined in the specification <a

files/en-us/web/api/speechrecognitionevent/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2 id="Properties">Properties</h2>
2222

2323
<dl>
2424
<dt>{{domxref("SpeechRecognitionEvent.emma")}} {{readonlyinline}}</dt>
25-
<dd>Returns an <cite>E</cite><cite>xtensible MultiModal Annotation markup language (EMMA) — XML — representation of the result.</cite></dd>
25+
<dd>Returns an Extensible MultiModal Annotation markup language (EMMA) — XML — representation of the result.</dd>
2626
<dt>{{domxref("SpeechRecognitionEvent.interpretation")}} {{readonlyinline}}</dt>
2727
<dd>Returns the semantic meaning of what the user said.</dd>
2828
<dt>{{domxref("SpeechRecognitionEvent.resultIndex")}} {{readonlyinline}}</dt>

files/en-us/web/api/speechrecognitionresult/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ <h2 id="Properties">Properties</h2>
2222
<dt>{{domxref("SpeechRecognitionResult.isFinal")}} {{readonlyinline}}</dt>
2323
<dd>A boolean value that states whether this result is final (true) or not (false) — if so, then this is the final time this result will be returned; if not, then this result is an interim result, and may be updated later on.</dd>
2424
<dt>{{domxref("SpeechRecognitionResult.length")}} {{readonlyinline}}</dt>
25-
<dd>Returns <cite>the length of the "array" — the </cite>number of {{domxref("SpeechRecognitionAlternative")}} objects contained in the result (also referred to as "n-best alternatives".)</dd>
25+
<dd>Returns the length of the "array" — the number of {{domxref("SpeechRecognitionAlternative")}} objects contained in the result (also referred to as "n-best alternatives".)</dd>
2626
</dl>
2727

2828
<h2 id="Methods">Methods</h2>

files/en-us/web/api/speechrecognitionresult/length/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<p>{{APIRef("Web Speech API")}}{{ SeeCompatTable() }}</p>
1717

1818
<p>The <code><strong>length</strong></code> read-only property of the
19-
{{domxref("SpeechRecognitionResult")}} interface returns <cite>the length of the "array"
20-
— the </cite>number of {{domxref("SpeechRecognitionAlternative")}} objects contained
19+
{{domxref("SpeechRecognitionResult")}} interface returns the length of the "array"
20+
— the number of {{domxref("SpeechRecognitionAlternative")}} objects contained
2121
in the result (also referred to as "n-best alternatives".)</p>
2222

2323
<p>The number of alternatives contained in the result depends on what the

files/en-us/web/api/speechrecognitionresultlist/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ <h2 id="Properties">Properties</h2>
2020

2121
<dl>
2222
<dt>{{domxref("SpeechRecognitionResultList.length")}} {{readonlyinline}}</dt>
23-
<dd>Returns <cite>the length of the "array" — the </cite>number of {{domxref("SpeechRecognitionResult")}} objects in the list.</dd>
23+
<dd>Returns the length of the "array" — the number of {{domxref("SpeechRecognitionResult")}} objects in the list.</dd>
2424
</dl>
2525

2626
<h2 id="Methods">Methods</h2>

files/en-us/web/api/speechrecognitionresultlist/length/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
<p>{{APIRef("Web Speech API")}}{{ SeeCompatTable() }}</p>
1717

1818
<p>The <code><strong>length</strong></code> read-only property of the
19-
{{domxref("SpeechRecognitionResultList")}} interface returns <cite>the length of the
20-
"array" — the </cite>number of {{domxref("SpeechRecognitionResult")}} objects in the
19+
{{domxref("SpeechRecognitionResultList")}} interface returns the length of the
20+
"array" — the number of {{domxref("SpeechRecognitionResult")}} objects in the
2121
list.</p>
2222

2323
<h2 id="Syntax">Syntax</h2>

files/en-us/web/api/webrtc_api/index.html

+13-13
Original file line numberDiff line numberDiff line change
@@ -231,27 +231,27 @@ <h2 id="Specifications">Specifications</h2>
231231
</tbody>
232232
</table>
233233

234-
<h3 id="WebRTC-proper_protocols">WebRTC-proper protocols</h4>
234+
<h3 id="WebRTC-proper_protocols">WebRTC-proper protocols</h3>
235235

236236
<ul>
237-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-alpn/"><cite>Application Layer Protocol Negotiation for Web Real-Time Communications</cite></a></li>
238-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-audio/"><cite>WebRTC Audio Codec and Processing Requirements</cite></a></li>
239-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-data-channel/"><cite>RTCWeb Data Channels</cite></a></li>
240-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-data-protocol/"><cite>RTCWeb Data Channel Protocol</cite></a></li>
241-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-rtp-usage/"><cite>Web Real-Time Communication (WebRTC): Media Transport and Use of RTP</cite></a></li>
242-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-security-arch/"><cite>WebRTC Security Architecture</cite></a></li>
243-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-transports/"><cite>Transports for RTCWEB</cite></a></li>
237+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-alpn/">Application Layer Protocol Negotiation for Web Real-Time Communications</a></li>
238+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-audio/">WebRTC Audio Codec and Processing Requirements</a></li>
239+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-data-channel/">RTCWeb Data Channels</a></li>
240+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-data-protocol/">RTCWeb Data Channel Protocol</a></li>
241+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-rtp-usage/">Web Real-Time Communication (WebRTC): Media Transport and Use of RTP</a></li>
242+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-security-arch/">WebRTC Security Architecture</a></li>
243+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-rtcweb-transports/">Transports for RTCWEB</a></li>
244244
</ul>
245245

246246
<h3 id="Related_supporting_protocols">Related supporting protocols</h3>
247247

248248
<ul>
249249
<li><a href="https://datatracker.ietf.org/doc/html/rfc5245">Interactive Connectivity Establishment (ICE): A Protocol for Network Address Translator (NAT) Traversal for Offer/Answer Protocol</a></li>
250-
<li><a href="https://datatracker.ietf.org/doc/html/rfc5389"><cite>Session Traversal Utilities for NAT (STUN)</cite></a></li>
251-
<li><a href="https://datatracker.ietf.org/doc/html/rfc7064"><cite>URI Scheme for the Session Traversal Utilities for NAT (STUN) Protocol</cite></a></li>
252-
<li><a href="https://datatracker.ietf.org/doc/html/rfc7065"><cite>Traversal Using Relays around NAT (TURN) Uniform Resource Identifiers</cite></a></li>
253-
<li><a href="https://datatracker.ietf.org/doc/html/rfc3264"><cite>An Offer/Answer Model with Session Description Protocol (SDP)</cite></a></li>
254-
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-tram-turn-third-party-authz/"><cite>Session Traversal Utilities for NAT (STUN) Extension for Third Party Authorization</cite></a></li>
250+
<li><a href="https://datatracker.ietf.org/doc/html/rfc5389">Session Traversal Utilities for NAT (STUN)</a></li>
251+
<li><a href="https://datatracker.ietf.org/doc/html/rfc7064">URI Scheme for the Session Traversal Utilities for NAT (STUN) Protocol</a></li>
252+
<li><a href="https://datatracker.ietf.org/doc/html/rfc7065">Traversal Using Relays around NAT (TURN) Uniform Resource Identifiers</a></li>
253+
<li><a href="https://datatracker.ietf.org/doc/html/rfc3264">An Offer/Answer Model with Session Description Protocol (SDP)</a></li>
254+
<li><a href="https://datatracker.ietf.org/doc/draft-ietf-tram-turn-third-party-authz/">Session Traversal Utilities for NAT (STUN) Extension for Third Party Authorization</a></li>
255255
</ul>
256256
<h2 id="See_also">See also</h2>
257257

files/en-us/web/api/webrtc_api/protocols/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ <h2 id="ICE">ICE</h2>
2727

2828
<h2 id="STUN">STUN</h2>
2929

30-
<p><a href="https://en.wikipedia.org/wiki/STUN">Session Traversal Utilities for <u>NAT</u> (STU<u>N</u>)</a> (acronym within an acronym) is a protocol to discover your public address and determine any restrictions in your router that would prevent a direct connection with a peer.</p>
30+
<p><a href="https://en.wikipedia.org/wiki/STUN">Session Traversal Utilities for NAT (STUN)</a> is a protocol to discover your public address and determine any restrictions in your router that would prevent a direct connection with a peer.</p>
3131

3232
<p>The client will send a request to a STUN server on the Internet who will reply with the client’s public address and whether or not the client is accessible behind the router’s NAT.</p>
3333

files/en-us/web/api/window/ondragdrop/index.html

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ <h2 id="Summary">Summary</h2>
2121

2222
<h2 id="Syntax">Syntax</h2>
2323

24-
<pre class="brush: js"><s>window.ondragdrop = funcRef;</s>
25-
window.addEventListener("dragdrop", funcRef, useCapturing);
26-
</pre>
24+
<pre class="brush: js">window.ondragdrop = funcRef;</pre>
2725

2826
<dl>
2927
<dt>funcRef </dt>

files/en-us/web/api/window/open/index.html

-16
Original file line numberDiff line numberDiff line change
@@ -111,22 +111,6 @@ <h2 id="Examples">Examples</h2>
111111
<p>To open a <em>new</em> window on every call of <code>window.open()</code>, use the
112112
special value <code>_blank</code> for <code><var>windowName</var></code>.</p>
113113

114-
<div class="notecard note">
115-
<p><strong>Note:</strong> The use of <code>window.open()</code> to
116-
reopen an existing window with name <code><var>windowName</var></code> is not valid for all browsers and more with variable conditions.
117-
<s>Firefox (50.0.1) functions as described: from the same domain+port reopen with same
118-
name will access the previously created window</s>. Google Chrome (55.0.2883.87 m )
119-
on the other hand will do it only from the same parent (as if the window was created
120-
dependent, which is the "opener"). This is a wide limitation and generates
121-
unbelievable complexity of development. Firefox (51.) gets the handle but cannot run
122-
any <code>Element.focus()</code> while Chrome can run <code>focus()</code> from opener
123-
to child but not between siblings nor, reverse, from child to opener. This function is
124-
the lonely key to get back the handle on a window if the developer has access only to
125-
its name (the name can be saved with cookies or local storage but not the window
126-
object handle). For now 10/01/2017 the differencies of behavior found recently have
127-
not still been tested for others Browsers.</p>
128-
</div>
129-
130114
<h2 id="Window_features">Window features</h2>
131115

132116
<p><code><var>windowFeatures</var></code> is an optional string containing a

0 commit comments

Comments
 (0)