- From: Matthew Ryan <notifications@github.com>
- Date: Thu, 12 May 2016 03:49:09 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Thursday, 12 May 2016 10:49:36 UTC
I derived it from [this JSFiddle](https://fiddle.jshell.net/Lfa0c767/), so something like:
```html
<html>
<head>
<title>Closed Shadow DOM</title>
<script language="Javascript" type="text/javascript">
window.addEventListener("load", function(){
var shadowRoot = document.getElementById("shadow").attachShadow({mode: "closed"});
shadowRoot.appendChild(document.createTextNode("This is some test text."));
}, false);
</script>
</head>
<body>
<div id="shadow"></div>
</body>
</html>
```
---
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/354#issuecomment-218723195
Received on Thursday, 12 May 2016 10:49:36 UTC