mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
18 lines
415 B
HTML
18 lines
415 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
</head>
|
|
<body>
|
|
<div id="container"><div id="host"></div></div>
|
|
<script>
|
|
var host = document.getElementById("host");
|
|
var root = host.createShadowRoot();
|
|
root.innerHTML = 'inside shadow DOM';
|
|
|
|
var container = document.getElementById("container");
|
|
container.removeChild(host);
|
|
container.appendChild(host);
|
|
</script>
|
|
</body>
|
|
</html>
|