[whatwg/dom] Add guidance about using DOMTokenList (Issue #1231)

### What is the issue with the DOM Standard?

It was suggested here that we should add guidance about when to use DOMTokenList (as opposed to setlike?): https://github.com/whatwg/html/pull/8467#discussion_r1045682355

I suppose there was some talk about setlike supporting "non-boolean" states which is why setlike was chosen instead of DOMTokenList for CSS custom state, but I'm not entirely sure if that's what we should be saying with regards to guidance.

@annevk

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

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

Received on Wednesday, 11 October 2023 21:30:11 UTC