Re: [whatwg/dom] Consider more name validation loosening (Issue #1373)

domenic left a comment (whatwg/dom#1373)

From what I can tell reading https://html.spec.whatwg.org/#doctype-state a definition of "valid doctype name" that matches the HTML parser would be something like:

- If _name_ contains NUL, ASCII whitespace, or >, then return false.
- Otherwise, return true.

Some [testing](https://jsbin.com/piveqimida/1/edit?html,js,console) seems to bear this out.

Should we roll that into #1079 too?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1373#issuecomment-2892729610
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1373/2892729610@github.com>

Received on Tuesday, 20 May 2025 02:30:59 UTC