Re: [whatwg/dom] Allow more characters in element/attribute names and prefixes (PR #1079)

@josepharhar commented on this pull request.



> @@ -6132,10 +6182,8 @@ interface DOMImplementation {
   Returns a <a>doctype</a>, with the given
   <var>qualifiedName</var>, <var>publicId</var>, and
   <var>systemId</var>. If <var>qualifiedName</var> does not
-  match the <code><a type>Name</a></code> production, an
-  "{{InvalidCharacterError!!exception}}" {{DOMException}} is thrown, and if it does not match the
-  <code><a type>QName</a></code> production, a
-  "{{NamespaceError!!exception}}" {{DOMException}} is thrown.
+  match the <code><a>QName</a></code> production, an
+  "{{InvalidCharacterError!!exception}}" {{DOMException}} is thrown.

In chromium the code for parsing this is shared between this and the attributeNS methods, so I'd have to split them in order to make this one keep using QName.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1079#discussion_r2098506747
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1079/review/2855032729@github.com>

Received on Tuesday, 20 May 2025 17:24:28 UTC