From 24569d8d771877fd332e16e6e618ef5241470888 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Thu, 16 Mar 2017 19:21:31 +0100 Subject: [PATCH] Use a single exception for name validation Tests: https://github.com/w3c/web-platform-tests/issues/5161. Fixes #319. --- dom.bs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/dom.bs b/dom.bs index d23099873..3d5e7d649 100644 --- a/dom.bs +++ b/dom.bs @@ -319,15 +319,9 @@ added.

Namespaces

-To validate a qualifiedName, run these steps: - -
    -
  1. If qualifiedName does not match the Name production, - then throw an {{InvalidCharacterError}}. - -

  2. If qualifiedName does not match the QName production, - then throw a {{NamespaceError}}. -

+

To validate a qualifiedName, throw an +{{InvalidCharacterError}} if qualifiedName does not match the +Name or QName production. To validate and extract a namespace and qualifiedName, run these steps: