Skip to content

Commit 5426c8b

Browse files
committed
Fix easy review comments
1 parent 26b2912 commit 5426c8b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dom.bs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ Indent: 1
1212
</pre>
1313

1414
<pre class=anchors>
15-
urlPrefix: https://www.w3.org/TR/xml/#NT-
15+
urlPrefix: https://www.w3.org/TR/xml/#NT-; spec: XML
1616
type: dfn
1717
text: Name; url: Name; for: XML
1818
text: Char; url: Char
1919
text: PubidChar; url: PubidChar
20-
urlPrefix: https://www.w3.org/TR/xml-names/#NT-
20+
urlPrefix: https://www.w3.org/TR/xml-names/#NT-; spec: XML-NAMES
2121
type: dfn
2222
text: QName; url: QName
2323
url: https://w3c.github.io/DOM-Parsing/#dom-range-createcontextualfragment
@@ -177,7 +177,7 @@ first <a>following</a> <a for=tree>sibling</a> or null if it has no <a for=tree>
177177
added.
178178

179179

180-
<h3 id=name-validation oldids=namespaces>Name validation</h3>
180+
<h3 id=namespaces>Name validation</h3>
181181

182182
<p>A [=string=] is a <dfn>valid namespace prefix</dfn> if its [=string/length=] is at least 1 and it
183183
does not contain [=ASCII whitespace=], U+0000 NULL, U+002F (/), or U+003E (>).
@@ -217,12 +217,12 @@ possibilities. For those additional possibilities, the ASCII range is restricted
217217
reasons, but beyond ASCII anything is allowed.
218218

219219
<div class=note>
220-
<p>The following JavaScript-compatible regular expression is an implementation of the above
221-
definition:
220+
<p>The following JavaScript-compatible regular expression is an implementation of
221+
[=valid element local name=]:
222222

223-
<pre class=lang-javascript>
223+
<pre><code class=lang-javascript>
224224
/^(?:[A-Za-z][^\0\t\n\f\r\u0020/>]*)|(?:[:_\u0080-\u{10FFFF}][A-Za-z0-9-.:_\u0080-\u{10FFFF}]*)$/u
225-
</pre>
225+
</code></pre>
226226
</div>
227227

228228
<p>To <dfn>validate and extract</dfn> a <var>namespace</var> and <var>qualifiedName</var>, given a

0 commit comments

Comments
 (0)