Re: [w3c/webcomponents] customElements.define should throw on registration of definitions that shadow built-in properties / methods. (#583)

Possibly a better twist: the native constructors themselves could throw when called if that constructor detects that the object being created has shadowed a banned property. This would allow each individual constructor to check for its specific properties and prevents the custom elements registry from taking on this responsibility.

-- 
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/583#issuecomment-252368842

Received on Friday, 7 October 2016 21:46:38 UTC