Skip to content

Commit

Permalink
remove more unnecessary class=external in web/api tree (#2284)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbe committed Feb 11, 2021
1 parent 594f64a commit b39d9fe
Show file tree
Hide file tree
Showing 51 changed files with 71 additions and 86 deletions.
4 changes: 2 additions & 2 deletions files/en-us/web/api/battery_status_api/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h2 id="Example">Example</h2>
});
</pre>

<p>See also <a class="external" href="https://www.w3.org/TR/battery-status/#examples">the example in the specification</a>.</p>
<p>See also <a href="https://www.w3.org/TR/battery-status/#examples">the example in the specification</a>.</p>

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

Expand Down Expand Up @@ -99,5 +99,5 @@ <h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web/Apps/Build/gather_and_modify_data/retrieving_battery_status_information">Retrieving battery status information - demo &amp; article</a></li>
<li><a class="external" href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">Hacks blog post - Using the Battery API</a></li>
<li><a href="http://hacks.mozilla.org/2012/02/using-the-battery-api-part-of-webapi/">Hacks blog post - Using the Battery API</a></li>
</ul>
4 changes: 2 additions & 2 deletions files/en-us/web/api/canvas_api/a_basic_ray-caster/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

<h2 id="Why.3F">Why?</h2>

<p>After realizing, to my delight, that the nifty <code>&lt;canvas&gt;</code> element I'd been <a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/#dynamic">reading about</a> was not only soon to be supported in Firefox, but was <strong>already</strong> supported in the current version of Safari, I had to try a little experiment.</p>
<p>After realizing, to my delight, that the nifty <code>&lt;canvas&gt;</code> element I'd been <a href="https://www.whatwg.org/specs/web-apps/current-work/#dynamic">reading about</a> was not only soon to be supported in Firefox, but was <strong>already</strong> supported in the current version of Safari, I had to try a little experiment.</p>

<p>The canvas <a href="/en-US/docs/Web/API/Canvas_API">overview</a> and <a href="/en-US/docs/Web/API/Canvas_API/Tutorial">tutorial</a> I found here at MDN are great, but nobody had written about animation yet, so I thought I'd try a port of a basic raycaster I'd worked on a while ago, and see what sort of performance we can expect from a JavaScript-controlled pixel buffer.</p>

Expand All @@ -31,7 +31,7 @@ <h2 id="How.3F">How?</h2>

<p>So every update, the raycaster looks to see if you've pressed any keys lately, to conserve calculations by not casting if you're idle. If you have, then the canvas is cleared, the ground and sky are drawn, the camera position and/or orientation are updated, and the rays are cast out. As the rays intersect walls, then they render a vertical sliver of canvas in the color of the wall they've hit, blended with a darker version of the color according to the distance to the wall. The height of the sliver is also modulated by the distance from the camera to the wall, and is drawn centered over the horizon line.</p>

<p>The code I ended up with is a regurgitated amalgam of the raycaster chapters from an old André LaMothe<em>Tricks of the Game Programming Gurus</em> book (<small>ISBN: 0672305070</small>), and a <a class="external" href="http://www.shinelife.co.uk/java-maze/">java raycaster</a> I found online, filtered through my compulsion to rename everything so it makes sense to me, and all the tinkering that had to be done to make things work well.</p>
<p>The code I ended up with is a regurgitated amalgam of the raycaster chapters from an old André LaMothe<em>Tricks of the Game Programming Gurus</em> book (<small>ISBN: 0672305070</small>), and a <a href="http://www.shinelife.co.uk/java-maze/">java raycaster</a> I found online, filtered through my compulsion to rename everything so it makes sense to me, and all the tinkering that had to be done to make things work well.</p>

<h2 id="Results">Results</h2>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ <h3 id="Manipulating_the_video_frame_data">Manipulating the video frame data</h3

<p>This is done repeatedly as the video plays, so that frame after frame is processed and displayed with the chroma-key effect.</p>

<p><a class="external" href="https://github.com/mdn/dom-examples/tree/master/canvas/chroma-keying">View the full source for this example</a>.</p>
<p><a href="https://github.com/mdn/dom-examples/tree/master/canvas/chroma-keying">View the full source for this example</a>.</p>

<h2 id="See_also">See also</h2>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ <h3 id="Required_&lt;canvas&gt;_tag">Required <code>&lt;/canvas&gt;</code> tag</

<h2 id="The_rendering_context">The rendering context</h2>

<p>The {{HTMLElement("canvas")}} element creates a fixed-size drawing surface that exposes one or more <strong>rendering contexts</strong>, which are used to create and manipulate the content shown. In this tutorial, we focus on the 2D rendering context. Other contexts may provide different types of rendering; for example, <a href="/en-US/docs/Web/API/WebGL_API">WebGL</a> uses a 3D context based on <a class="external" href="http://www.khronos.org/opengles/" rel="external">OpenGL ES</a>.</p>
<p>The {{HTMLElement("canvas")}} element creates a fixed-size drawing surface that exposes one or more <strong>rendering contexts</strong>, which are used to create and manipulate the content shown. In this tutorial, we focus on the 2D rendering context. Other contexts may provide different types of rendering; for example, <a href="/en-US/docs/Web/API/WebGL_API">WebGL</a> uses a 3D context based on <a href="http://www.khronos.org/opengles/" rel="external">OpenGL ES</a>.</p>

<p>The canvas is initially blank. To display something, a script first needs to access the rendering context and draw on it. The {{HTMLElement("canvas")}} element has a method called {{domxref("HTMLCanvasElement.getContext", "getContext()")}}, used to obtain the rendering context and its drawing functions. <code>getContext()</code> takes one parameter, the type of context. For 2D graphics, such as those covered by this tutorial, you specify <code>"2d"</code> to get a {{domxref("CanvasRenderingContext2D")}}.</p>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ <h3 id="Arcs">Arcs</h3>

<h3 id="Bezier_and_quadratic_curves">Bezier and quadratic curves</h3>

<p>The next type of paths available are <a class="external" href="https://en.wikipedia.org/wiki/B%C3%A9zier_curve" rel="external">Bézier curves</a>, available in both cubic and quadratic varieties. These are generally used to draw complex organic shapes.</p>
<p>The next type of paths available are <a href="https://en.wikipedia.org/wiki/B%C3%A9zier_curve" rel="external">Bézier curves</a>, available in both cubic and quadratic varieties. These are generally used to draw complex organic shapes.</p>

<dl>
<dt>{{domxref("CanvasRenderingContext2D.quadraticCurveTo", "quadraticCurveTo(cp1x, cp1y, x, y)")}}</dt>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2 id="Styling_text">Styling text</h2>

<p>These properties might be familiar to you, if you have worked with CSS before.</p>

<p>The following diagram from the <a class="external" href="https://www.whatwg.org/">WHATWG</a> demonstrates the various baselines supported by the <code>textBaseline</code> property.<img alt="The top of the em square is
<p>The following diagram from the <a href="https://www.whatwg.org/">WHATWG</a> demonstrates the various baselines supported by the <code>textBaseline</code> property.<img alt="The top of the em square is
roughly at the top of the glyphs in a font, the hanging baseline is
where some glyphs like आ are anchored, the middle is half-way
between the top of the em square and the bottom of the em square,
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/canvas_api/tutorial/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h2 id="See_also">See also</h2>

<ul>
<li><a href="/en-US/docs/Web/API/Canvas_API">Canvas topic page</a></li>
<li><a class="external" href="http://www.html5canvastutorials.com/">HTML5CanvasTutorials</a></li>
<li><a href="http://www.html5canvastutorials.com/">HTML5CanvasTutorials</a></li>
</ul>

<h2 id="A_note_to_contributors">A note to contributors</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/canvasrenderingcontext2d/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ <h3 id="Internet_Explorer">Internet Explorer</h3>

<dl>
<dt>{{non-standard_inline}} <code>CanvasRenderingContext2D.msFillRule</code></dt>
<dd>The <a class="external" href="http://cairographics.org/manual/cairo-cairo-t.html#cairo-fill-rule-t">fill rule</a> to use. This must be one of <code>evenodd</code> or <code>nonzero</code> (default).</dd>
<dd>The <a href="http://cairographics.org/manual/cairo-cairo-t.html#cairo-fill-rule-t">fill rule</a> to use. This must be one of <code>evenodd</code> or <code>nonzero</code> (default).</dd>
</dl>

<h2 id="Specifications">Specifications</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/dir/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a class="external" href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
<li><a href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
the F12 Tools Console to View Errors and Status</a></li>
<li><a
href="https://developers.google.com/chrome-developer-tools/docs/console-api#consoledirobject">Chrome
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/info/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ <h2 id="See_also">See also</h2>
<li><a class="external"
href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly
documentation: Console</a></li>
<li><a class="external" href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
<li><a href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
the F12 Tools Console to View Errors and Status</a></li>
</ul>
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/log/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h2 id="See_also">See also</h2>
<li><a class="external"
href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly
documentation: Console</a></li>
<li><a class="external" href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
<li><a href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
the F12 Tools Console to View Errors and Status</a></li>
<li><a href="http://getfirebug.com/wiki/index.php/Console_API">Firebug wiki: Console
API</a> - Firebug supports additional features in its console.log() implementation,
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/console/warn/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ <h2 id="See_also">See also</h2>
<li><a class="external"
href="http://www.opera.com/dragonfly/documentation/console/">Opera Dragonfly
documentation: Console</a></li>
<li><a class="external" href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
<li><a href="https://msdn.microsoft.com/library/gg589530">MSDN: Using
the F12 Tools Console to View Errors and Status</a></li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ <h2 id="How_big_is_the_content.3F">How big is the content?</h2>
<h2 id="See_also">See also</h2>

<ul>
<li><a class="external" href="https://www.w3.org/TR/cssom-view-1/">https://www.w3.org/TR/cssom-view-1/</a></li>
<li><a href="https://www.w3.org/TR/cssom-view-1/">https://www.w3.org/TR/cssom-view-1/</a></li>
<li><a href="https://docs.microsoft.com/en-us/previous-versions/hh781509(v=vs.85)">MSDN: Measuring Element Dimension and Location</a></li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -175,5 +175,5 @@ <h2 id="See_also">See also</h2>
<li>{{domxref("Screen.unlockOrientation()")}}</li>
<li>{{domxref("Screen.onorientationchange")}}</li>
<li><a href="/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#orientation">The orientation media query</a></li>
<li><a class="external" href="http://hacks.mozilla.org/2009/06/media-queries/">A short introduction to media queries in Firefox 3.5</a></li>
<li><a href="http://hacks.mozilla.org/2009/06/media-queries/">A short introduction to media queries in Firefox 3.5</a></li>
</ul>
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h3 id="Event_targets">Event targets</h3>
</tr>
<tr>
<td><code><a href="/en-US/docs/DOM/event.target">event.target</a></code></td>
<td><a class="external" href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-interface">DOM Event Interface</a></td>
<td><a href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-interface">DOM Event Interface</a></td>
<td>
<p>The DOM element on the lefthand side of the call that triggered this event, eg:</p>

Expand All @@ -37,12 +37,12 @@ <h3 id="Event_targets">Event targets</h3>
</tr>
<tr>
<td><code><a href="/en-US/docs/DOM/event.currentTarget">event.currentTarget</a></code></td>
<td><a class="external" href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-interface">DOM Event Interface</a></td>
<td>The <a class="external" href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-EventTarget"><code>EventTarget</code></a> whose <a class="external" href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-EventListener"><code>EventListeners</code></a> are currently being processed. As the event capturing and bubbling occurs, this value changes.</td>
<td><a href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-interface">DOM Event Interface</a></td>
<td>The <a href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-EventTarget"><code>EventTarget</code></a> whose <a href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-EventListener"><code>EventListeners</code></a> are currently being processed. As the event capturing and bubbling occurs, this value changes.</td>
</tr>
<tr>
<td><code><a href="/en-US/docs/DOM/event.relatedTarget">event.relatedTarget</a></code></td>
<td><a class="external" href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-MouseEvent">DOM MouseEvent Interface</a></td>
<td><a href="https://www.w3.org/TR/DOM-Level-2/events.html#Events-MouseEvent">DOM MouseEvent Interface</a></td>
<td>Identifies a secondary target for the event.</td>
</tr>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ <h2 id="Specifications">Specifications</h2>

<p><em>This is a Mozilla-specific property.</em> Defined in {{Source("/dom/public/idl/events/nsIDOMNSEvent.idl")}}</p>

<p>This event property is <strong>not defined</strong> in the <a class="external" href="https://www.w3.org/TR/DOM-Level-2-Events/events.html">W3.org DOM Level 2 Events</a></p>
<p>This event property is <strong>not defined</strong> in the <a href="https://www.w3.org/TR/DOM-Level-2-Events/events.html">W3.org DOM Level 2 Events</a></p>

<h2 id="Browser_compatibility">Browser compatibility</h2>

Expand Down
9 changes: 3 additions & 6 deletions files/en-us/web/api/globaleventhandlers/oninput/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,11 @@ <h2 id="Browser_compatibility">Browser compatibility</h2>
working with older browsers:</p>

<ul>
<li><a class="external"
href="http://blog.danielfriesen.name/2010/02/16/html5-browser-maze-oninput-support/">A
<li><a href="http://blog.danielfriesen.name/2010/02/16/html5-browser-maze-oninput-support/">A
HTML5 Browser maze, oninput support</a></li>
<li><a class="external"
href="http://www.useragentman.com/blog/2011/05/12/fixing-oninput-in-ie9-using-html5widgets/">Fixing
<li><a href="http://www.useragentman.com/blog/2011/05/12/fixing-oninput-in-ie9-using-html5widgets/">Fixing
oninput in IE Using html5Widgets</a> includes polyfill for IE6-8</li>
<li>Mathias Bynens suggests <a class="external"
href="http://mathiasbynens.be/notes/oninput">binding to both input and keydown</a>
<li>Mathias Bynens suggests <a href="http://mathiasbynens.be/notes/oninput">binding to both input and keydown</a>
</li>
<li><a href="http://help.dottoro.com/ljhxklln.php">oninput event |
dottoro</a> has notes about bugginess in IE9</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ <h2 id="General_info">General info</h2>
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/api/htmlmediaelement/play_event/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
</tr>
<tr>
<th scope="row">Specification</th>
<td><a class="external" href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
<td><a href="https://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#event-media-playing">HTML5 media</a></td>
</tr>
</tbody>
</table>
Expand Down
Loading

0 comments on commit b39d9fe

Please sign in to comment.