Skip to content

Commit 2f37778

Browse files
authored
Editorial: clarify namespace validate and extract
Fixes #1134.
1 parent 1aa6fb0 commit 2f37778

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

dom.bs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,17 @@ run these steps:
210210

211211
<li><p>Let <var>localName</var> be <var>qualifiedName</var>.
212212

213-
<li><p>If <var>qualifiedName</var> contains a U+003A (:), then <a>strictly split</a> the string on
214-
it and set <var>prefix</var> to the part before and <var>localName</var> to the part after.
213+
<li>
214+
<p>If <var>qualifiedName</var> contains a U+003A (:), then:
215+
216+
<ol>
217+
<li><p>Let <var>splitResult</var> be the result of running <a>strictly split</a> given
218+
<var>qualifiedName</var> and U+003A (:).
219+
220+
<li><p>Set <var>prefix</var> to <var>splitResult</var>[0].
221+
222+
<li><p>Set <var>localName</var> to <var>splitResult</var>[1].
223+
</ol>
215224

216225
<li><p>If <var>prefix</var> is non-null and <var>namespace</var> is null, then <a>throw</a> a
217226
"{{NamespaceError!!exception}}" {{DOMException}}.

0 commit comments

Comments
 (0)