Re: [webcomponents] Consider making ShadowRoot directly inherit from Node (#325)

I think inheritance is the proper relationship here. Every context where you can use a document fragment, you can use a shadow root, right? That (LSP) is the best criterion here. 

Inheritance does not mean that everywhere a subclass can appear, the superclass must also be able to appear. (So a shadow root being able to appear in documents even though a document fragment cannot is fine.) 

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

Received on Friday, 18 September 2015 05:31:51 UTC