Skip to content

Commit

Permalink
Editorial: order of comparisons
Browse files Browse the repository at this point in the history
For consistency:
- greater than or equal to
- less than or equal to
  • Loading branch information
annevk committed Mar 26, 2024
1 parent ae5a7ec commit 7ad555e
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -22733,9 +22733,8 @@ this specification: the <abbr>WHATWG</abbr> and the
but maps more cleanly to structured code, please let me know. -->


<li><p><i>Start mode</i>: If <var>index</var> is equal to or greater than the number of
child nodes in <var>current parent</var>, then jump to the step labeled <i>end
mode</i>.</p>
<li><p><i>Start mode</i>: If <var>index</var> is greater than or equal to the number of child
nodes in <var>current parent</var>, then jump to the step labeled <i>end mode</i>.</p>

<li><p>If the <var>index</var>th node in <var>current parent</var> is an
<code>rt</code> or <code>rp</code> element, jump to the step labeled <i>annotation
Expand All @@ -22757,9 +22756,9 @@ this specification: the &lt;abbr>WHATWG&lt;/abbr> and the

<li><p>Increment <var>index</var> by one.</p></li>

<li><p><i>Base mode post-increment</i>: If <var>index</var> is equal to or greater than
the number of child nodes in <var>current parent</var>, then jump to the step labeled
<i>end mode</i>.</p></li>
<li><p><i>Base mode post-increment</i>: If <var>index</var> is greater than or equal to the
number of child nodes in <var>current parent</var>, then jump to the step labeled <i>end
mode</i>.</p></li>

<li><p>Jump back to the step labeled <i>base mode</i>.</p></li>

Expand Down Expand Up @@ -37443,7 +37442,7 @@ interface <dfn interface>MediaError</dfn> {

<p>The user agent must determine the duration of the <span>media resource</span> before playing
any part of the <span>media data</span> and before setting <code
data-x="dom-media-readyState">readyState</code> to a value equal to or greater than <code
data-x="dom-media-readyState">readyState</code> to a value greater than or equal to <code
data-x="dom-media-HAVE_METADATA">HAVE_METADATA</code>, even if doing so requires fetching multiple
parts of the resource.</p>

Expand Down Expand Up @@ -41163,11 +41162,11 @@ dictionary <dfn dictionary>TrackEventInit</dfn> : <span>EventInit</span> {
<td>Playback is ready to start after having been paused or delayed due to lack of <span>media
data</span>.

<td><code data-x="dom-media-readyState">readyState</code> is newly equal to or greater than
<td><code data-x="dom-media-readyState">readyState</code> is newly greater than or equal to
<code data-x="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code> and <code
data-x="dom-media-paused">paused</code> is false, or <code
data-x="dom-media-paused">paused</code> is newly false and <code
data-x="dom-media-readyState">readyState</code> is equal to or greater than <code
data-x="dom-media-readyState">readyState</code> is greater than or equal to <code
data-x="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code>. Even if this event fires, the
element might still not be <span>potentially playing</span>, e.g. if the element is
<span>paused for user interaction</span> or <span>paused for in-band content</span>.
Expand All @@ -41181,7 +41180,7 @@ dictionary <dfn dictionary>TrackEventInit</dfn> : <span>EventInit</span> {
<td>Playback has stopped because the next frame is not available, but the user agent expects
that frame to become available in due course.

<td><code data-x="dom-media-readyState">readyState</code> is equal to or less than <code
<td><code data-x="dom-media-readyState">readyState</code> is less than or equal to <code
data-x="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code>, and <code
data-x="dom-media-paused">paused</code> is false. Either <code
data-x="dom-media-seeking">seeking</code> is true, or the <span>current playback position</span>
Expand Down Expand Up @@ -51412,7 +51411,7 @@ ldh-str = &lt; as defined in <a href="https://www.rfc-editor.org/rfc/rfc10

<p>If the <code>input</code> element has a <span>maximum allowed value length</span>, then the
<span>length</span> of the value of the element's <code data-x="attr-input-value">value</code>
attribute must be equal to or less than the element's <span>maximum allowed value
attribute must be less than or equal to the element's <span>maximum allowed value
length</span>.</p>

<!-- we allow the default to be smaller than the minimum, so that you can have incomplete, but not
Expand Down Expand Up @@ -54482,7 +54481,7 @@ interface <dfn interface>HTMLTextAreaElement</dfn> : <span>HTMLElement</span> {
<p>If the <code>textarea</code> element has a <span>maximum allowed value length</span>, then the
element's children must be such that the <span>length</span> of the value of the element's
<span>descendant text content</span> with <span data-x="normalize newlines">newlines
normalized</span> is equal to or less than the element's <span>maximum allowed value
normalized</span> is less than or equal to the element's <span>maximum allowed value
length</span>.</p>

<p>The <dfn element-attr for="textarea"><code
Expand Down Expand Up @@ -54976,8 +54975,8 @@ interface <dfn interface>HTMLProgressElement</dfn> : <span>HTMLElement</span> {
<p>The <code data-x="attr-progress-value">value</code> and <code
data-x="attr-progress-max">max</code> attributes, when present, must have values that are <span
data-x="valid floating-point number">valid floating-point numbers</span>. The <code
data-x="attr-progress-value">value</code> attribute, if present, must have a value equal to or
greater than zero, and less than or equal to the value of the <code
data-x="attr-progress-value">value</code> attribute, if present, must have a value greater than or
equal to zero, and less than or equal to the value of the <code
data-x="attr-progress-max">max</code> attribute, if present, or 1.0, otherwise. The <code
data-x="attr-progress-max">max</code> attribute, if present, must have a value greater than
zero.</p>
Expand Down Expand Up @@ -66880,9 +66879,9 @@ try {
clockwise from the x-axis.</p>

<p>If <var>counterclockwise</var> is false and <span data-x=""><var>endAngle</var> &minus;
<var>startAngle</var></span> is equal to or greater than <span data-x="">2&pi;</span>, or, if
<var>startAngle</var></span> is greater than or equal to <span data-x="">2&pi;</span>, or, if
<var>counterclockwise</var> is <em>true</em> and <span data-x=""><var>startAngle</var> &minus;
<var>endAngle</var></span> is equal to or greater than <span data-x="">2&pi;</span>, then the
<var>endAngle</var></span> is greater than or equal to <span data-x="">2&pi;</span>, then the
arc is the whole circumference of this ellipse, and both the start point and the end point are
the result of running the <span>determine the point on an ellipse steps</span> given this
ellipse and <var>startAngle</var>.</p>
Expand Down Expand Up @@ -79527,7 +79526,7 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
returns an error,</li>

<li>before any <span>focusable area</span> whose <span>DOM anchor</span> is an element whose <code
data-x="attr-tabindex">tabindex</code> attribute has a value equal to or less than zero,</li>
data-x="attr-tabindex">tabindex</code> attribute has a value less than or equal to zero,</li>

<li>after any <span>focusable area</span> whose <span>DOM anchor</span> is an element whose <code
data-x="attr-tabindex">tabindex</code> attribute has a value greater than zero but less than
Expand Down Expand Up @@ -112874,7 +112873,7 @@ scheduleWork(); // queues a task to do lots of work</code></pre>

<li><p>Wait until any invocations of this algorithm that had the same <var>global</var> and
<var>orderingIdentifier</var>, that started before this one, and whose <var>milliseconds</var>
is equal to or less than this one's, have completed.</p></li>
is less than or equal to this one's, have completed.</p></li>

<li>
<p>Optionally, wait a further <span>implementation-defined</span> length of time.</p>
Expand Down Expand Up @@ -135747,7 +135746,7 @@ interface <dfn interface>HTMLMarqueeElement</dfn> : <span>HTMLElement</span> {

<li><p>Increment the <span>marquee current loop index</span> by one.</p></li>

<li><p>If the <span>marquee current loop index</span> is now equal to or greater than the
<li><p>If the <span>marquee current loop index</span> is now greater than or equal to the
element's <span>marquee loop count</span>, <span data-x="concept-marquee-off">turn off</span> the
<code>marquee</code> element.</p></li>
</ol>
Expand Down

0 comments on commit 7ad555e

Please sign in to comment.