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 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.
+
+ <li><p>Return true.
+</ol>
+
+<p class=note>This concept is used to validate [=/element=] [=Element/local names=], when
+constructed by DOM APIs. The intention is to allow any name that is possible to construct using the
+HTML parser (the branch where the first [=code point=] is an [=ASCII alpha=]), plus some additional
+possibilities. For those additional possibilities, the ASCII range is restricted for historical
+reasons, but beyond ASCII anything is allowed.
+
+<div class=note>
+ <p>The following JavaScript-compatible regular expression is an implementation of the above
+ definition:

Just to be clear, instead of saying "the above definition" could you say "valid attribute local name"?

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

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

Received on Friday, 16 May 2025 23:52:23 UTC