Skip to content

Commit

Permalink
Editorial: Fix some typos and some markup inconsistencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdyck authored Nov 26, 2024
1 parent dac8ec1 commit 47573b1
Showing 1 changed file with 47 additions and 39 deletions.
86 changes: 47 additions & 39 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -40848,7 +40848,7 @@ interface <dfn interface>TextTrackCue</dfn> : <span>EventTarget</span> {
Then, if the <code>TextTrackCue</code> object's <span>text track cue</span> is in a <span>text
track</span>'s <span data-x="text track list of cues">list of cues</span>, and that <span>text
track</span> is in a <span>media element</span>'s <span>list of text tracks</span>, and the
<span>media element</span>'s <span>show poster flag </span> is not set, then run the <i
<span>media element</span>'s <span>show poster flag</span> is not set, then run the <i
data-x="time marches on">time marches on</i> steps for that <span>media element</span>.</p>

<p>The <dfn attribute for="TextTrackCue"><code
Expand Down Expand Up @@ -62883,7 +62883,7 @@ document.body.append(script1, script2);
</div>
</li>

<li><p>If <var>insertedNode</var> is <span>parser-inserted</span>, then return.<p></li>
<li><p>If <var>insertedNode</var> is <span>parser-inserted</span>, then return.</p></li>

<li><p><span>Prepare the script element</span> given <var>insertedNode</var>.</p></li>
</ol>
Expand Down Expand Up @@ -64215,22 +64215,25 @@ interface <dfn interface>HTMLTemplateElement</dfn> : <span>HTMLElement</span> {
<code>template</code>'s <span>template contents</span>, if the <span>template contents</span> is
not a <code>ShadowRoot</code> node; otherwise null.</p>

<p>The <dfn><code data-x="dom-template-shadowrootmode">shadowRootMode</code></dfn> IDL attribute
must <span>reflect</span> the <code data-x="attr-template-shadowrootmode">shadowrootmode</code>
content attribute, <span>limited to only known values</span>.</p>
<p>The <dfn attribute for="HTMLTemplateElement"><code
data-x="dom-template-shadowrootmode">shadowRootMode</code></dfn> IDL attribute must
<span>reflect</span> the <code data-x="attr-template-shadowrootmode">shadowrootmode</code> content
attribute, <span>limited to only known values</span>.</p>

<p>The <dfn><code
<p>The <dfn attribute for="HTMLTemplateElement"><code
data-x="dom-template-shadowrootdelegatesfocus">shadowRootDelegatesFocus</code></dfn> IDL attribute
must <span>reflect</span> the <code
data-x="attr-template-shadowrootdelegatesfocus">shadowrootdelegatesfocus</code> content
attribute.</p>

<p>The <dfn><code data-x="dom-template-shadowrootclonable">shadowRootClonable</code></dfn> IDL
attribute must <span>reflect</span> the <code
data-x="attr-template-shadowrootclonable">shadowrootclonable</code> content attribute.</p>
<p>The <dfn attribute for="HTMLTemplateElement"><code
data-x="dom-template-shadowrootclonable">shadowRootClonable</code></dfn> IDL attribute must
<span>reflect</span> the <code data-x="attr-template-shadowrootclonable">shadowrootclonable</code>
content attribute.</p>

<p>The <dfn><code data-x="dom-template-shadowRootSerializable">shadowRootSerializable</code></dfn>
IDL attribute must <span>reflect</span> the <code
<p>The <dfn attribute for="HTMLTemplateElement"><code
data-x="dom-template-shadowRootSerializable">shadowRootSerializable</code></dfn> IDL attribute
must <span>reflect</span> the <code
data-x="attr-template-shadowrootserializable">shadowrootserializable</code> content attribute.</p>

<hr>
Expand Down Expand Up @@ -66468,10 +66471,10 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
something according to a CSS grammar">parsing</span> "<code data-x="">0px</code>" as a CSS
<span>&lt;length></span>.</p>

<p>The <dfn data-x="dom-context-2d-letterSpacing"><code>letterSpacing</code></dfn> getter steps
are to return the <span data-x="serializing a CSS value">serialized form</span> of
<span>this</span>'s <span data-x="concept-CanvasTextDrawingStyles-letter-spacing">letter
spacing</span>.</p>
<p>The <dfn attribute for="CanvasTextDrawingStyles"
data-x="dom-context-2d-letterSpacing"><code>letterSpacing</code></dfn> getter steps are to return
the <span data-x="serializing a CSS value">serialized form</span> of <span>this</span>'s <span
data-x="concept-CanvasTextDrawingStyles-letter-spacing">letter spacing</span>.</p>

<p>The <code data-x="dom-context-2d-letterSpacing">letterSpacing</code> setter steps are:</p>

Expand All @@ -66486,10 +66489,10 @@ worker.postMessage(offscreenCanvas, [offscreenCanvas]);</code></pre>
<var>parsed</var>.</p></li>
</ol>

<p>The <dfn data-x="dom-context-2d-wordSpacing"><code>wordSpacing</code></dfn> getter steps are
to return the <span data-x="serializing a CSS value">serialized form</span> of
<span>this</span>'s <span data-x="concept-CanvasTextDrawingStyles-word-spacing">word
spacing</span>.</p>
<p>The <dfn attribute for="CanvasTextDrawingStyles"
data-x="dom-context-2d-wordSpacing"><code>wordSpacing</code></dfn> getter steps are to return the
<span data-x="serializing a CSS value">serialized form</span> of <span>this</span>'s <span
data-x="concept-CanvasTextDrawingStyles-word-spacing">word spacing</span>.</p>

<p>The <code data-x="dom-context-2d-wordSpacing">wordSpacing</code> setter steps are:</p>

Expand Down Expand Up @@ -74012,9 +74015,10 @@ interface <dfn interface>CustomStateSet</dfn> {
setlike&lt;DOMString>;
};</code></pre>

<p>The <dfn for="HTMLElement"><code data-x="dom-ElementInternals-states">states</code></dfn>
getter steps are to return <span>this</span>'s <span data-x="internals-target">target
element</span>'s <span>states set</span>.</p>
<p>The <dfn attribute for="HTMLElement"><code
data-x="dom-ElementInternals-states">states</code></dfn> getter steps are to return
<span>this</span>'s <span data-x="internals-target">target element</span>'s <span>states
set</span>.</p>
</div>

<div class="example">
Expand Down Expand Up @@ -78962,19 +78966,23 @@ interface <dfn interface>VisibilityStateEntry</dfn> : <span>PerformanceEntry</sp
<dfn data-x="VisibilityStateEntry-timestamp">timestamp</dfn>.</p>

<p>The <code>VisibilityStateEntry</code> has an associated "<code data-x="">visible</code>" or
"<code data-x="">hidden</code>" <dfn
data-x="VisibilityStateEntry-state">visibility state</dfn>.</p>
"<code data-x="">hidden</code>" <dfn data-x="VisibilityStateEntry-state">visibility
state</dfn>.</p>

<p>The <dfn data-x="VisibilityStateEntry-name"><code>name</code></dfn> getter steps are to return
<p>The <dfn attribute for="VisibilityStateEntry"
data-x="VisibilityStateEntry-name"><code>name</code></dfn> getter steps are to return
<span>this</span>'s <span data-x="VisibilityStateEntry-state">visibility state</span>.</p>

<p>The <dfn data-x="VisibilityStateEntry-entryType"><code>entryType</code></dfn> getter steps are to return
<p>The <dfn attribute for="VisibilityStateEntry"
data-x="VisibilityStateEntry-entryType"><code>entryType</code></dfn> getter steps are to return
"<code data-x="">visibility-state</code>".</p>

<p>The <dfn data-x="VisibilityStateEntry-startTime"><code>startTime</code></dfn> getter steps are to return
<p>The <dfn attribute for="VisibilityStateEntry"
data-x="VisibilityStateEntry-startTime"><code>startTime</code></dfn> getter steps are to return
<span>this</span>'s <span data-x="VisibilityStateEntry-timestamp">timestamp</span>.</p>

<p>The <dfn data-x="VisibilityStateEntry-duration"><code>duration</code></dfn> getter steps are to return
<p>The <dfn attribute for="VisibilityStateEntry"
data-x="VisibilityStateEntry-duration"><code>duration</code></dfn> getter steps are to return
zero.</p>


Expand Down Expand Up @@ -79110,8 +79118,8 @@ interface <dfn interface>VisibilityStateEntry</dfn> : <span>PerformanceEntry</sp
inert sections are not obviously inert.</p>
</div>

<p>The <dfn data-x="dom-inert"><code>inert</code></dfn> IDL attribute must <span>reflect</span>
the content attribute of the same name.</p>
<p>The <dfn attribute for="HTMLElement" data-x="dom-inert"><code>inert</code></dfn> IDL attribute
must <span>reflect</span> the content attribute of the same name.</p>

<h3>Tracking <dfn export>user activation</dfn></h3>

Expand Down Expand Up @@ -79487,8 +79495,8 @@ partial interface <span id="NavigatorUserActivation-partial">Navigator</span> {
<pre><code class="idl">[Exposed=Window]
interface <dfn interface>ToggleEvent</dfn> : <span>Event</span> {
constructor(DOMString type, optional <span>ToggleEventInit</span> eventInitDict = {});
readonly attribute DOMString oldState;
readonly attribute DOMString newState;
readonly attribute DOMString <span data-x="dom-ToggleEvent-oldState">oldState</span>;
readonly attribute DOMString <span data-x="dom-ToggleEvent-newState">newState</span>;
};

dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
Expand Down Expand Up @@ -82334,7 +82342,7 @@ body { display:none }
<p>The <dfn attribute for="HTMLElement"><code data-x="dom-autocorrect">autocorrect</code></dfn>
getter steps are: return true if the element's <span>used autocorrection state</span> is <span
data-x="concept-autocorrection-on">on</span> and false if the element's <span>used autocorrection
state</span> is <span data-x="concept-autocorrection-on">off</span>. The setter steps are: if the
state</span> is <span data-x="concept-autocorrection-off">off</span>. The setter steps are: if the
given value is true, then the element's <code data-x="attr-autocorrect">autocorrect</code>
attribute must be set to "<code data-x="">on</code>"; otherwise it must be set to "<code
data-x="">off</code>".</p>
Expand All @@ -82347,7 +82355,7 @@ body { display:none }
data-x="attr-input-type">type</code> attribute is in one of the <span
data-x="attr-input-type-url">URL</span>, <span data-x="attr-input-type-email">E-mail</span>, or
<span data-x="attr-input-type-password">Password</span> states, then return <span
data-x="concept-autocorrection-on">off</span>.</p></li>
data-x="concept-autocorrection-off">off</span>.</p></li>

<li><p>If the <code data-x="attr-autocorrect">autocorrect</code> content attribute is present on
<var>element</var>, then return the state of the attribute.</p></li>
Expand Down Expand Up @@ -83067,7 +83075,7 @@ interface <dfn interface>CloseWatcher</dfn> : <span>EventTarget</span> {
undefined <span data-x="dom-CloseWatcher-destroy">destroy</span>();

attribute <span>EventHandler</span> <span data-x="handler-CloseWatcher-oncancel">oncancel</span>;
attribute <span>EventHandler</span> <span data-x="handler-CloseWatcher-oncancel">onclose</span>;
attribute <span>EventHandler</span> <span data-x="handler-CloseWatcher-onclose">onclose</span>;
};

dictionary <dfn dictionary>CloseWatcherOptions</dfn> {
Expand Down Expand Up @@ -94776,7 +94784,7 @@ dictionary <dfn dictionary>NavigateEventInit</dfn> : <span>EventInit</span> {
<span>FormData</span>? <dfn dict-member for="NavigateEventInit" data-x="dom-NavigateEventInit-formData">formData</dfn> = null;
DOMString? <dfn dict-member for="NavigateEventInit" data-x="dom-NavigateEventInit-downloadRequest">downloadRequest</dfn> = null;
any <dfn dict-member for="NavigateEventInit" data-x="dom-NavigateEventInit-info">info</dfn>;
boolean <dfn dict-member for="NavigateEventInit" data-x="dom-NavigateEventInit-hasUAVisualTransition ">hasUAVisualTransition</dfn> = false;
boolean <dfn dict-member for="NavigateEventInit" data-x="dom-NavigateEventInit-hasUAVisualTransition">hasUAVisualTransition</dfn> = false;
};

dictionary <dfn dictionary>NavigationInterceptOptions</dfn> {
Expand Down Expand Up @@ -95235,7 +95243,7 @@ interface <dfn interface>NavigationDestination</dfn> {
return <span>this</span>'s <span data-x="concept-NavigationDestination-sameDocument">is same
document</span>.</p>

<p>The <dfn attribute for="NavigationDestination"><code
<p>The <dfn method for="NavigationDestination"><code
data-x="dom-NavigationDestination-getState">getState()</code></dfn> method steps are to return
<span>StructuredDeserialize</span>(<span>this</span>'s <span
data-x="concept-NavigationDestination-state">state</span>).</p>
Expand Down Expand Up @@ -111104,7 +111112,7 @@ import "https://example.com/foo/../module2.mjs";</code></pre>

<li>
<p>If <var>referrer</var> is a <span>Cyclic Module Record</span> and <var>moduleRequest</var>
is equal to the first element of <var>referrer</var>.[[RequestedModules]], then:<p>
is equal to the first element of <var>referrer</var>.[[RequestedModules]], then:</p>

<ol>
<li id="validate-requested-module-specifiers">
Expand Down Expand Up @@ -138101,7 +138109,7 @@ if (s = prompt('What is your name?')) {

<dt><dfn element-attr for="menu"><code data-x="attr-menu-label">label</code></dfn> on <code>menu</code> elements</dt>
<dt><dfn element-attr><code data-x="attr-contextmenu">contextmenu</code></dfn> on all elements</dt>
<dt><dfn attribute><code data-x="handler-onshow">onshow</code></dfn> on all elements</dt>
<dt><dfn element-attr><code data-x="handler-onshow">onshow</code></dfn> on all elements</dt>
<dd><p>To implement a custom context menu, use script to handle the <code
data-x="event-contextmenu">contextmenu</code> event.</p></dd>

Expand Down

0 comments on commit 47573b1

Please sign in to comment.