Re: [w3c/webcomponents] [idea] Allow HTML Element attributes to accept any type of value, not just strings. (#519)

We can't change `setAttribute()` like that. There's too many things that rely on attributes being strings (e.g., selectors) and the behavior of the method is to call `ToString` on arguments passed (per IDL). Changing that would break content all over.

This is also the wrong place to propose changes to core DOM APIs. Those should go to whatwg/dom, but breaking changes of this nature will end up being rejected.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/519#issuecomment-322706941

Received on Wednesday, 16 August 2017 08:49:13 UTC