From ba9fc4bc39a0c6fb0f0c4726b94e4d5b0243cfde Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Thu, 3 Jul 2025 01:04:42 +1200 Subject: [PATCH] Avoid passing null through to 'valid name prefix' --- dom.bs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dom.bs b/dom.bs index 70e5a8cc..0c81d339 100644 --- a/dom.bs +++ b/dom.bs @@ -245,10 +245,12 @@ U+0000 NULL, or U+003E (>).
  • Set prefix to splitResult[0].

  • Set localName to splitResult[1]. + +

  • If prefix is not a [=valid namespace prefix=], then [=throw=] an + "{{InvalidCharacterError}}" {{DOMException}}. -

  • If prefix is not a [=valid namespace prefix=], then [=throw=] an - "{{InvalidCharacterError}}" {{DOMException}}. +

  • Assert: prefix is either null or a [=valid namespace prefix=].

  • If context is "attribute" and localName is not a [=valid attribute local name=], then [=throw=] an "{{InvalidCharacterError}}" {{DOMException}}.