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

@domenic commented on this pull request.



>  
- <li><p><a>Validate</a> <var>qualifiedName</var>.
+ <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.

Yeah, technically such things are not strings. It should be impossible for bytes above 0x10FFFF to appear inside the C++ string data structures that you're processing. You can't get them in their via either JavaScript APIs or the HTML parsing.

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

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

Received on Tuesday, 20 May 2025 02:33:09 UTC