Skip to content

Commit 3fd0ebc

Browse files
authored
Remove various classes 3 (#8377)
* Remove 'language-js' * Remove 'line-numbers' * Clean up more code block classes * Remove a couple more
1 parent 1ed9924 commit 3fd0ebc

File tree

56 files changed

+64
-64
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+64
-64
lines changed

files/en-us/web/api/analysernode/getfloatfrequencydata/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3 id="Drawing_a_spectrum">Drawing a spectrum</h3>
5454

5555
<p>For more complete applied examples/information, check out our <a href="https://mdn.github.io/voice-change-o-matic-float-data/">Voice-change-O-matic-float-data</a> demo (see the <a href="https://github.com/mdn/voice-change-o-matic-float-data">source code</a> too).</p>
5656

57-
<pre class="brush: html,">&lt;!doctype html&gt;
57+
<pre class="brush: html">&lt;!doctype html&gt;
5858
&lt;body&gt;
5959
&lt;script&gt;
6060
const audioCtx = new AudioContext();

files/en-us/web/api/audiotrack/language/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2 id="Example">Example</h2>
5151
<p>This could then be used to build a user interface for selecting the language the user
5252
would like to listen to while watching a movie, for example.</p>
5353

54-
<pre class="brush: js line-numbers language-js">function getAvailableLanguages(el) {
54+
<pre class="brush: js">function getAvailableLanguages(el) {
5555
var trackList = [];
5656
const wantedKinds = [
5757
"main", "translation"

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h3 id="Return_value">Return value</h3>
5252

5353
<h2 id="Example">Example</h2>
5454

55-
<pre class="brush: js language-js">var aFileParts = ['&lt;a id="a"&gt;&lt;b id="b"&gt;hey!&lt;/b&gt;&lt;/a&gt;']; // an array consisting of a single DOMString
55+
<pre class="brush: js ">var aFileParts = ['&lt;a id="a"&gt;&lt;b id="b"&gt;hey!&lt;/b&gt;&lt;/a&gt;']; // an array consisting of a single DOMString
5656
var oMyBlob = new Blob(aFileParts, {type : 'text/html'}); // the blob</pre>
5757

5858
<h2 id="Specifications">Specifications</h2>

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h3 id="Exceptions">Exceptions</h3>
4141
<h2 id="Examples">Examples</h2>
4242

4343
<pre
44-
class="brush: js line-numbers language-js">const queuingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 });
44+
class="brush: js ">const queuingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 });
4545

4646
const readableStream = new ReadableStream({
4747
start(controller) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="Methods">Methods</h2>
3434

3535
<h2 id="Examples">Examples</h2>
3636

37-
<pre class="brush: js line-numbers language-js">const queueingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 });
37+
<pre class="brush: js ">const queueingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 });
3838

3939
const readableStream = new ReadableStream({
4040
start(controller) {

files/en-us/web/api/bytelengthqueuingstrategy/size/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 id="Return_value">Return value</h3>
3636
<h2 id="Examples">Examples</h2>
3737

3838
<pre
39-
class="brush: js line-numbers language-js">const queuingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 });
39+
class="brush: js ">const queuingStrategy = new ByteLengthQueuingStrategy({ highWaterMark: 1 });
4040

4141
const readableStream = new ReadableStream({
4242
start(controller) {

files/en-us/web/api/client/type/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h3 id="Value">Value</h3>
3333
<h2 id="Example">Example</h2>
3434

3535
<pre
36-
class="brush: js line-numbers language-js">// service worker client (e.g. a document)
36+
class="brush: js">// service worker client (e.g. a document)
3737
function sendMessage(message) {
3838
return new Promise(function(resolve, reject) {
3939
// note that this is the ServiceWorker.postMessage version

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

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

2323
<h2 id="Example">Example</h2>
2424

25-
<pre class="brush: js language-js">var comment = new Comment("Test");</pre>
25+
<pre class="brush: js ">var comment = new Comment("Test");</pre>
2626

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

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ <h3 id="Exceptions">Exceptions</h3>
4040
<h2 id="Examples">Examples</h2>
4141

4242
<pre
43-
class="brush: js line-numbers language-js">const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
43+
class="brush: js ">const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
4444

4545
const writableStream = new WritableStream({
4646
// Implement the sink

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h2 id="Methods">Methods</h2>
3434

3535
<h2 id="Examples">Examples</h2>
3636

37-
<pre class="brush: js line-numbers language-js">const queueingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
37+
<pre class="brush: js ">const queueingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
3838

3939
const writableStream = new WritableStream({
4040
// Implement the sink

files/en-us/web/api/countqueuingstrategy/size/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ <h3 id="Return_value">Return value</h3>
3333
<h2 id="Examples">Examples</h2>
3434

3535
<pre
36-
class="brush: js line-numbers language-js">const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
36+
class="brush: js ">const queuingStrategy = new CountQueuingStrategy({ highWaterMark: 1 });
3737

3838
const writableStream = new WritableStream({
3939
// Implement the sink

files/en-us/web/api/datatransferitemlist/remove/index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ <h2 id="Example">Example</h2>
5252

5353
<h3 id="JavaScript">JavaScript</h3>
5454

55-
<pre class="brush: js line-numbers language-js">function dragstart_handler(ev) {
55+
<pre class="brush: js ">function dragstart_handler(ev) {
5656
console.log("dragStart");
5757
// Add this element's id to the drag payload so the drop handler will
5858
// know which element to add to its tree
@@ -109,7 +109,7 @@ <h3 id="JavaScript">JavaScript</h3>
109109

110110
<h3 id="HTML">HTML</h3>
111111

112-
<pre class="brush: html line-numbers language-html">&lt;h1&gt;Example uses of &lt;code&gt;DataTransferItemList&lt;/code&gt; methods and property&lt;/h1&gt;
112+
<pre class="brush: html">&lt;h1&gt;Example uses of &lt;code&gt;DataTransferItemList&lt;/code&gt; methods and property&lt;/h1&gt;
113113
&lt;div&gt;
114114
&lt;p id="source" ondragstart="dragstart_handler(event);" ondragend="dragend_handler(event);" draggable="true"&gt;
115115
Select this element, drag it to the Drop Zone and then release the selection to move the element.&lt;/p&gt;
@@ -119,7 +119,7 @@ <h3 id="HTML">HTML</h3>
119119

120120
<h3 id="CSS">CSS</h3>
121121

122-
<pre class="brush: css line-numbers language-css"> div {
122+
<pre class="brush: css"> div {
123123
margin: 0em;
124124
padding: 2em;
125125
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ <h2 id="Syntax">Syntax</h2>
5151

5252
<h2 id="Examples">Examples</h2>
5353

54-
<pre class="brush: js line-numbers language-js">document.addEventListener("visibilitychange", function() {
54+
<pre class="brush: js">document.addEventListener("visibilitychange", function() {
5555
console.log( document.visibilityState );
5656
// Modify behavior...
5757
})</pre>

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

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

2424
<pre
25-
class="brush: js language-js">let fragment = new DocumentFragment();</pre>
25+
class="brush: js ">let fragment = new DocumentFragment();</pre>
2626

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

files/en-us/web/api/eventsource/message_event/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 id="Examples">Examples</h2>
3838

3939
<p>In this basic example, an <code>EventSource</code> is created to receive events from the server; a page with the name <code>sse.php</code> is responsible for generating the events.</p>
4040

41-
<pre class="brush: js line-numbers language-js">var evtSource = new EventSource('sse.php');
41+
<pre class="brush: js">var evtSource = new EventSource('sse.php');
4242
var eventList = document.querySelector('ul');
4343

4444
evtSource.addEventListener('message', (e) =&gt; {

files/en-us/web/api/filereader/onload/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<h2 id="Example">Example</h2>
1717

18-
<pre class="brush:js; line-numbers language-js">// Callback from a &lt;input type=&quot;file&quot; onchange=&quot;onChange(event)&quot;&gt;
18+
<pre class="brush:js;">// Callback from a &lt;input type=&quot;file&quot; onchange=&quot;onChange(event)&quot;&gt;
1919
function onChange(event) {
2020
var file = event.target.files[0];
2121
var reader = new FileReader();

files/en-us/web/api/gamepad/displayid/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ <h3 id="Value">Value</h3>
3535

3636
<h2 id="Examples">Examples</h2>
3737

38-
<pre class="brush: js line-numbers language-js">window.addEventListener("gamepadconnected", function(e) {
38+
<pre class="brush: js">window.addEventListener("gamepadconnected", function(e) {
3939
if(!e.gamepad.displayId) {
4040
console.log('Gamepad connected');
4141
} else {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
8888
<h2 id="See_also">See also</h2>
8989

9090
<ul>
91-
<li><a class="external text" href="https://hacks.mozilla.org/2013/12/the-gamepad-api/" rel="nofollow">The Gamepad API</a> by Ted Mielczarek and Robert Nyman</li>
91+
<li><a href="https://hacks.mozilla.org/2013/12/the-gamepad-api/" rel="nofollow">The Gamepad API</a> by Ted Mielczarek and Robert Nyman</li>
9292
<li><a href="https://luser.github.io/gamepadtest/">Simple API demo page</a> (<a href="https://github.com/luser/gamepadtest">source</a>)</li>
9393
</ul>

files/en-us/web/api/history/forward/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ <h3 id="HTML">HTML</h3>
3434

3535
<h3 id="JavaScript">JavaScript</h3>
3636

37-
<pre class="brush: js line-numbers language-js">document.getElementById('go-forward').addEventListener('click', e =&gt; {
37+
<pre class="brush: js">document.getElementById('go-forward').addEventListener('click', e =&gt; {
3838
window.history.forward();
3939
})</pre>
4040

files/en-us/web/api/history/replacestate/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h2 id="Examples">Examples</h2>
4545
<p>Suppose https://www.mozilla.org/foo.html executes the following JavaScript:</p>
4646

4747
<pre
48-
class="brush: js line-numbers language-js">const stateObj = { foo: 'bar' };
48+
class="brush: js">const stateObj = { foo: 'bar' };
4949
history.pushState(stateObj, '', 'bar.html');</pre>
5050

5151
<p>The explanation of these two lines above can be found in the <a
@@ -57,7 +57,7 @@ <h2 id="Examples">Examples</h2>
5757
JavaScript:</p>
5858

5959
<pre
60-
class="brush: js line-numbers language-js">history.replaceState(stateObj, '', 'bar2.html');</pre>
60+
class="brush: js">history.replaceState(stateObj, '', 'bar2.html');</pre>
6161

6262
<p>This will cause the URL bar to display
6363
<code>https://www.mozilla.org/bar2.html</code>, but won't cause the browser

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h2 id="Examples">Examples</h2>
7171

7272
<p>The following example assigns a listener to the <code>onpopstate</code> property. And then illustrates some of the methods of the history object to add, replace, and move within the browser history for the current tab.</p>
7373

74-
<pre class="brush:js line-numbers language-js">window.onpopstate = function(event) {
74+
<pre class="brush:js">window.onpopstate = function(event) {
7575
alert(`location: ${document.location}, state: ${JSON.stringify(event.state)}`)
7676
}
7777

files/en-us/web/api/htmliframeelement/srcdoc/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<h2 id="Examples">Examples</h2>
1111

12-
<pre class="brush: js line-numbers">var iframe = document.createElement("iframe");
12+
<pre class="brush: js">var iframe = document.createElement("iframe");
1313
iframe.srcdoc = `&lt;!DOCTYPE html&gt;&lt;p&gt;Hello World!&lt;/p&gt;`;
1414
document.body.appendChild(iframe);</pre>
1515

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ <h2 id="Methods">Methods</h2>
7070

7171
<h2 id="Examples">Examples</h2>
7272

73-
<pre class="brush: html line-numbers language-html">&lt;marquee&gt;This text will scroll from right to left&lt;/marquee&gt;
73+
<pre class="brush: html">&lt;marquee&gt;This text will scroll from right to left&lt;/marquee&gt;
7474

7575
&lt;marquee direction="up"&gt;This text will scroll from bottom to top&lt;/marquee&gt;
7676

files/en-us/web/api/imagedata/data/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ <h3 id="Getting_an_ImageData_object's_pixel_data">Getting an ImageData object's
3030
pixels tall, making 10,000 pixels in all. The <code>data</code> array stores four values
3131
for each pixel, making 4 x 10,000, or 40,000 values in all.</p>
3232

33-
<pre class="brush: js language-js">let imageData = new ImageData(100, 100);
33+
<pre class="brush: js ">let imageData = new ImageData(100, 100);
3434
console.log(imageData.data); // Uint8ClampedArray[40000]
3535
console.log(imageData.data.length); // 40000
3636
</pre>

files/en-us/web/api/imagedata/height/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="Example">Example</h2>
2424
<p>This example creates an <code>ImageData</code> object that is 200 pixels wide and 100
2525
pixels tall. Thus, the <code>height</code> property is <code>100</code>.</p>
2626

27-
<pre class="brush: js language-js">let imageData = new ImageData(200, 100);
27+
<pre class="brush: js ">let imageData = new ImageData(200, 100);
2828
console.log(imageData.height); // 100
2929
</pre>
3030

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ <h3 id="Creating_a_blank_ImageData_object">Creating a blank ImageData object</h3
5858
<p>This example creates an <code>ImageData</code> object that is 200 pixels wide and 100
5959
pixels tall, containing a total of 20,000 pixels.</p>
6060

61-
<pre class="brush: js language-js">let imageData = new ImageData(200, 100);
61+
<pre class="brush: js ">let imageData = new ImageData(200, 100);
6262
// ImageData { width: 200, height: 100, data: Uint8ClampedArray[80000] }
6363
</pre>
6464

files/en-us/web/api/imagedata/width/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ <h2 id="Example">Example</h2>
2424
<p>This example creates an <code>ImageData</code> object that is 200 pixels wide and 100
2525
pixels tall. Thus, the <code>width</code> property is <code>200</code>.</p>
2626

27-
<pre class="brush: js language-js">let imageData = new ImageData(200, 100);
27+
<pre class="brush: js ">let imageData = new ImageData(200, 100);
2828
console.log(imageData.width); // 200
2929
</pre>
3030

files/en-us/web/api/media_capabilities_api/using_the_media_capabilities_api/index.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ <h3 id="Querying_the_browser_about_decoding_abilities">Querying the browser abou
8585

8686
<p>Now that we've created a video decoding configuration we can pass it as a paramater of the {{domxref("MediaCapabilities.decodingInfo", "decodingInfo()")}} method to determine if a video matching this configuration would be decodable and if the playback would be smooth and power efficient.</p>
8787

88-
<pre class="brush: js language-js">var promise = navigator.mediaCapabilities.decodingInfo(videoConfiguration);</pre>
88+
<pre class="brush: js">var promise = navigator.mediaCapabilities.decodingInfo(videoConfiguration);</pre>
8989

9090
<p>The <code>decodingInfo()</code> and {{domxref("MediaCapabilities.encodingInfo", "encodingInfo()")}} methods both return promises. Once the promises state is fulfilled, you can access the {{domxref("MediaCapabilitiesInfo")}} interface's <code>supported</code>, <code>smooth</code>, and <code>powerEfficient</code> properties.</p>
9191

9292
<h3 id="Handling_the_response">Handling the response</h3>
9393

9494
<p>Instead of the assigning the promise to a variable, we can output the values returned by the promise to the console:</p>
9595

96-
<pre class="brush: js language-js">navigator.mediaCapabilities.decodingInfo(videoConfiguration).then(result =&gt; {
96+
<pre class="brush: js">navigator.mediaCapabilities.decodingInfo(videoConfiguration).then(result =&gt; {
9797
console.log('This configuration is ' +
9898
(result.supported ? '' : 'not ') + 'supported, ' +
9999
(result.smooth ? '' : 'not ') + 'smooth, and ' +

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h3 id="Parameters">Parameters</h3>
4141
<h2 id="Examples">Examples</h2>
4242

4343
<pre
44-
class="brush: js line-numbers language-js">var media = '(max-width: 600px)';
44+
class="brush: js">var media = '(max-width: 600px)';
4545
var matches = true;
4646

4747
var myMediaQueryListEvent = new MediaQueryListEvent({media, matches});</pre>

files/en-us/web/api/mediarecorder/onerror/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ <h2 id="Example">Example</h2>
7575
exceptions are thrown during the setup process.</p>
7676

7777
<div class="codecopy codecopy-lg">
78-
<pre class="brush: js line-numbers language-js">function recordStream(stream) {
78+
<pre class="brush: js ">function recordStream(stream) {
7979
let recorder = null;
8080
let bufferList = [];
8181

files/en-us/web/api/mediasource/activesourcebuffers/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h2 id="Example">Example</h2>
4141
href="https://github.com/nickdesaulniers/netfix/blob/gh-pages/demo/bufferAll.html">download
4242
the source</a> for further investigation.)</p>
4343

44-
<pre class="brush: js language-js">function sourceOpen (_) {
44+
<pre class="brush: js ">function sourceOpen (_) {
4545
//console.log(this.readyState); // open
4646
var mediaSource = this;
4747
var sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);

files/en-us/web/api/mediasource/addsourcebuffer/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h2 id="Example">Example</h2>
7171
the source</a> for further investigation.)</p>
7272

7373
<pre
74-
class="brush: js language-js">var assetURL = 'frag_bunny.mp4';
74+
class="brush: js ">var assetURL = 'frag_bunny.mp4';
7575
// Need to be specific for Blink regarding codecs
7676
// ./mp4info frag_bunny.mp4 | grep Codec
7777
var mimeCodec = 'video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;';

files/en-us/web/api/mediasource/duration/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2 id="Example">Example</h2>
6464
href="https://github.com/nickdesaulniers/netfix/blob/gh-pages/demo/bufferAll.html">download
6565
the source</a> for further investigation.)</p>
6666

67-
<pre class="brush: js language-js">function sourceOpen (_) {
67+
<pre class="brush: js ">function sourceOpen (_) {
6868
//console.log(this.readyState); // open
6969
var mediaSource = this;
7070
var sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);

files/en-us/web/api/mediasource/endofstream/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ <h2 id="Example">Example</h2>
8181
the source</a> for further investigation.)</p>
8282

8383
<pre
84-
class="brush: js language-js">var assetURL = 'frag_bunny.mp4';
84+
class="brush: js ">var assetURL = 'frag_bunny.mp4';
8585
// Need to be specific for Blink regarding codecs
8686
// ./mp4info frag_bunny.mp4 | grep Codec
8787
var mimeCodec = 'video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;';

files/en-us/web/api/mediasource/istypesupported/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2 id="Example">Example</h2>
6464
the source</a> for further investigation.)</p>
6565

6666
<pre
67-
class="brush: js language-js">var assetURL = 'frag_bunny.mp4';
67+
class="brush: js ">var assetURL = 'frag_bunny.mp4';
6868
// Need to be specific for Blink regarding codecs
6969
// ./mp4info frag_bunny.mp4 | grep Codec
7070
var mimeCodec = 'video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;';

files/en-us/web/api/mediasource/readystate/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ <h2 id="Example">Example</h2>
4646
the source</a> for further investigation.)</p>
4747

4848
<pre
49-
class="brush: js language-js">if ('MediaSource' in window &amp;&amp; MediaSource.isTypeSupported(mimeCodec)) {
49+
class="brush: js ">if ('MediaSource' in window &amp;&amp; MediaSource.isTypeSupported(mimeCodec)) {
5050
var mediaSource = new MediaSource;
5151
//console.log(mediaSource.readyState); // closed
5252
video.src = URL.createObjectURL(mediaSource);

files/en-us/web/api/mediasource/removesourcebuffer/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ <h3 id="Exceptions">Exceptions</h3>
5757

5858
<h2 id="Examples">Examples</h2>
5959

60-
<pre class="brush: js language-js">for (i = 0; i &lt; 10; i++) {
60+
<pre class="brush: js ">for (i = 0; i &lt; 10; i++) {
6161
var sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);
6262
}
6363

files/en-us/web/api/mediasource/sourcebuffers/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 id="Example">Example</h2>
3838
href="https://github.com/nickdesaulniers/netfix/blob/gh-pages/demo/bufferAll.html">download
3939
the source</a> for further investigation.)</p>
4040

41-
<pre class="brush: js language-js">function sourceOpen (_) {
41+
<pre class="brush: js ">function sourceOpen (_) {
4242
//console.log(this.readyState); // open
4343
var mediaSource = this;
4444
var sourceBuffer = mediaSource.addSourceBuffer(mimeCodec);

files/en-us/web/api/messageevent/ports/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ <h3 id="Value">Value</h3>
2929

3030
<h2 id="Example">Example</h2>
3131

32-
<pre class="brush: js line-numbers language-js">onconnect = function(e) {
32+
<pre class="brush: js ">onconnect = function(e) {
3333
var port = e.ports[0];
3434

3535
port.addEventListener('message', function(e) {

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h2 id="Examples">Examples</h2>
3838

3939
<p>This snippet is derived loosely from the full, working example you'll find in {{SectionOnPage("/en-US/docs/Web/API/WebRTC_API/Using_DTMF", "When a tone finishes playing")}}. It appends each tone to a display box as it's played, and, once all tones have been sent, re-enabled a previously-disabled "Send" button, allowing the next DMTF string to be entered.</p>
4040

41-
<pre class="brush: js line-numbers language-js">dtmfSender.addEventListener(&quot;change&quot;, function(event) {
41+
<pre class="brush: js ">dtmfSender.addEventListener(&quot;change&quot;, function(event) {
4242
if (event.tone !== &quot;&quot;) {
4343
dialStringBox.innerText += event.tone;
4444
} else {

0 commit comments

Comments
 (0)