- From: Ryosuke Niwa <notifications@github.com>
- Date: Sun, 06 Dec 2015 17:12:00 -0800
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Monday, 7 December 2015 01:12:31 UTC
If you'd like to force components to always use the open shadow DOM, you can just do:
```
var originalAttachShadow = Element.prototype.attachShadow;
Element.prototype.attachShadow = function(options) {
options['mode'] = 'open';
return originalAttachShadow(options);
}
```
at the beginning of the document.
---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/354#issuecomment-162383744
Received on Monday, 7 December 2015 01:12:31 UTC