Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a single exception for name validation (follow up) #675

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ added.

<p>To <dfn export>validate</dfn> a <var>qualifiedName</var>, <a>throw</a> an
"{{InvalidCharacterError!!exception}}" {{DOMException}} if <var>qualifiedName</var> does not match
the <code><a type>Name</a></code> or <code><a type>QName</a></code> production.
the <code><a type>QName</a></code> production.

To <dfn export>validate and extract</dfn> a <var>namespace</var> and <var>qualifiedName</var>,
run these steps:
Expand Down Expand Up @@ -5021,15 +5021,13 @@ for the <a>context object</a>.
<var>qualifiedName</var> or null. Its <a for=Element>local name</a> will be everything after
"<code>:</code>" (U+003E) in <var>qualifiedName</var> or <var>qualifiedName</var>.

<p>If <var>localName</var> does not match the <code><a type>Name</a></code> production an
<p>If <var>qualifiedName</var> does not match the <code><a type>QName</a></code> production an
"{{InvalidCharacterError!!exception}}" {{DOMException}} will be thrown.

<p>If one of the following conditions is true a "{{NamespaceError!!exception}}" {{DOMException}}
will be thrown:

<ul>
<li><var>localName</var> does not match the
<code><a type>QName</a></code> production.
<li><a for=Element>Namespace prefix</a>
is not null and <var>namespace</var> is the empty string.
<li><a for=Element>Namespace prefix</a>
Expand Down