Re: [webcomponents] [Shadow]: Element.createShadowRoot() throws an exception for some elements (bugzilla: 27844) (#102)

@annevk
I'm afraid that I don't understand fully what https://www.w3.org/Bugs/Public/show_bug.cgi?id=27844#c10 means, however, let me update the spec so that it throws an Exception.
I'll ping you so that it can be reviewed by you.

I'm also thinking that createShadowRoot() should throw a similar exception if it is called more than once for the same element. In the current spec, it is defined it return null. 

https://w3c.github.io/webcomponents/spec/shadow/#widl-Element-createShadowRoot-ShadowRoot-ShadowRootInit-shadowRootInitDict

I'm not sure which is better, throws an Exception or return a null. I am thinking throwing an Exception is better also in this case.

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

Received on Monday, 1 June 2015 07:09:16 UTC