Skip to content

Commit 1b4bd48

Browse files
authored
Avoid passing null to valid name prefix
Tests: web-platform-tests/wpt#53533. Fixes #1387.
1 parent 780b8dd commit 1b4bd48

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dom.bs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,12 @@ U+0000 NULL, or U+003E (>).
245245
<li><p>Set <var>prefix</var> to <var>splitResult</var>[0].
246246

247247
<li><p>Set <var>localName</var> to <var>splitResult</var>[1].
248+
249+
<li><p>If <var>prefix</var> is not a [=valid namespace prefix=], then [=throw=] an
250+
"{{InvalidCharacterError}}" {{DOMException}}.
248251
</ol>
249252

250-
<li><p>If <var>prefix</var> is not a [=valid namespace prefix=], then [=throw=] an
251-
"{{InvalidCharacterError}}" {{DOMException}}.
253+
<li><p><a for=/>Assert</a>: <var>prefix</var> is either null or a [=valid namespace prefix=].
252254

253255
<li><p>If <var>context</var> is "<code>attribute</code>" and <var>localName</var> is not a
254256
[=valid attribute local name=], then [=throw=] an "{{InvalidCharacterError}}" {{DOMException}}.

0 commit comments

Comments
 (0)