Re: [dom] Let DOMTokenList.prototype.add() return false if there are no supported tokens (#111)

Have you considered just giving up on this boolean return value bit and moving to a tristate return value, all truthy, representing "supported", "not supported", and "no supported set" (in fact, they could just be those strings)?  Then a falsy return value would mean API not implemented yet (reducing the complexity of writing proper feature-detection in the face of downrev clients that don't implement the API yet), and a truthy one would tell you exactly what's going on with the support state.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/111#issuecomment-158411312

Received on Friday, 20 November 2015 14:10:01 UTC