[whatwg/dom] Make DOMTokenList's supported token concept also depend on element (PR #1431)

It makes no sense for it to just depend on the attribute name.

Also modernize this section while here.

(PR template doesn't apply as this is mostly a clarification. The creation steps for this object seem incorrect to me by the way, as I doubt we want to make that result in a mutation record, but that's best solved separately.)
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1431

-- Commit Summary --

  * Make DOMTokenList's supported token concept also depend on element

-- File Changes --

    M dom.bs (103)

-- Patch Links --

https://github.com/whatwg/dom/pull/1431.patch
https://github.com/whatwg/dom/pull/1431.diff

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

Message ID: <whatwg/dom/pull/1431@github.com>

Received on Friday, 28 November 2025 08:12:48 UTC