Re: [dom] DOMTokenList hook to validate added token is in a supported set of keywords (#103)

So if pages start to use
if (link.relList && link.relList.add("preload")) {
that breaks preload on browsers which don't have TokenList implementation updated.
(because .add returning void is false)

This feature feels odd "feature testing" and "actual feature usage" merged together.
Not much different to node.isSupported("foo") + using the feature, except that .add() forces one to actually
try to use the feature in order to know whether browser claims to support it.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/103#issuecomment-158405803

Received on Friday, 20 November 2015 13:41:57 UTC