Re: [webcomponents] Change createElement(localName, typeExtension) to createElement(localName, { is }) (#408)

Dictionaries and strings are distinguishable, yes (the only problem would be with existing code relying on stringification of some object).

The main reason I want to make this change is that we might extend `createElement()` further. I sort of thought at some point it was going away in favor of constructors, but that does not seem to be happening anytime soon, so we might add other features here, just like custom elements is trying.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/408#issuecomment-191416299

Received on Wednesday, 2 March 2016 20:33:06 UTC