Skip to content

Commit

Permalink
Editorial: use comma in "Otherwise, if ..."
Browse files Browse the repository at this point in the history
There are 200+ cases of this, and only these 3 exceptions.
  • Loading branch information
foolip committed May 3, 2024
1 parent 5d28582 commit f499167
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -4730,7 +4730,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
namespace declaration in the expression context. </p>

<p>If the QName has no prefix and the principal node type of the axis is element, then the
default element namespace is used. Otherwise if the QName has no prefix, the namespace URI is
default element namespace is used. Otherwise, if the QName has no prefix, the namespace URI is
null. The default element namespace is a member of the context for the XPath expression. The
value of the default element namespace when executing an XPath expression through the DOM3 XPath
API is determined in the following way:</p>
Expand Down Expand Up @@ -6604,7 +6604,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
U+0073 LATIN SMALL LETTER S character, set <var>units</var> to <i>seconds</i> and
set <var>M-disambiguator</var> to <i>minutes</i>.</p>

<p>Otherwise if <var>next character</var> is none of the above characters, then
<p>Otherwise, if <var>next character</var> is none of the above characters, then
fail.</p>
</li>
</ol>
Expand Down Expand Up @@ -52520,7 +52520,7 @@ You cannot submit this form when the field is incorrect.</samp></pre>
data-x="attr-input-type">type</code> attribute's current state, then throw an
<span>"<code>InvalidStateError</code>"</span> <code>DOMException</code>; otherwise, if the new
value is not null and not a <code >Date</code> object throw a <code>TypeError</code> exception;
otherwise if the new value is null or a <code>Date</code> object representing the NaN time value,
otherwise, if the new value is null or a <code>Date</code> object representing the NaN time value,
then set the <span data-x="concept-fe-value">value</span> of the element to the empty string;
otherwise, run the <span data-x="concept-input-value-date-string">algorithm to convert a
<code>Date</code> object to a string</span>, as defined for that state, on the new value, and set
Expand Down

0 comments on commit f499167

Please sign in to comment.