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

@josepharhar commented on this pull request.



> + <li>
+  <p>If |name|'s 0th [=code point=] is an [=ASCII alpha=], then:
+
+  <ol>
+   <li><p>If |name| contains [=ASCII whitespace=], U+0000 NULL, U+002F (/), or U+003E (>), then
+   return false.
+
+   <li><p>Return true.
+  </ol>
+
+ <li><p>If |name|'s 0th [=code point=] is not U+003A (:), U+005F (_), or in the range U+0080
+ to U+10FFFF, inclusive, then return false.
+
+ <li><p>If |name|'s subsequent [=code points=], if any, are not [=ASCII alphas=], [=ASCII digits=],
+ U+002D (-), U+002E (.), U+003A (:), U+005F (_), or in the range U+0080 to U+10FFFF, inclusive, then
+ return false.

What about U+0000 null characters? `document.createElement(':\0')`

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

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

Received on Thursday, 15 May 2025 17:35:38 UTC