Skip to content

Commit

Permalink
Use a single exception for name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Mar 16, 2017
1 parent 334428f commit 24569d8
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -319,15 +319,9 @@ added.

<h3 id=namespaces>Namespaces</h3>

To <dfn export>validate</dfn> a <var>qualifiedName</var>, run these steps:

<ol>
<li><p>If <var>qualifiedName</var> does not match the <code><a type>Name</a></code> production,
then <a>throw</a> an {{InvalidCharacterError}}.

<li><p>If <var>qualifiedName</var> does not match the <code><a type>QName</a></code> production,
then <a>throw</a> a {{NamespaceError}}.
</ol>
<p>To <dfn export>validate</dfn> a <var>qualifiedName</var>, <a>throw</a> an
{{InvalidCharacterError}} if <var>qualifiedName</var> does not match the
<code><a type>Name</a></code> or <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

0 comments on commit 24569d8

Please sign in to comment.