Sha256: 0042dde95c50dfa824c76c2d0df6ca3e077b54a4f0d5511f230cd805e3d63b2d
Contents?: true
Size: 1.07 KB
Versions: 11
Compression:
Stored size: 1.07 KB
Contents
<!DOCTYPE html> <%# Borrowed from Titus Fortner %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Shadow DOM</title> </head> <body> <div id="no_host"></div> <div id="shadow_host"></div> <a href="scroll.html">scroll.html</a> <script> let shadowRoot = document.getElementById('shadow_host').attachShadow({mode: 'open'}); shadowRoot.innerHTML = ` <span class="wrapper" id="shadow_content"><span class="info">some text</span></span> <div id="nested_shadow_host"></div> <a href="scroll.html">scroll.html</a> <div id="controls_wrapper"> <input type="text" /> <input type="checkbox" id="shadow_checkbox" /> <input type="file" /> </div> `; let nestedShadowRoot = shadowRoot.getElementById('nested_shadow_host').attachShadow({mode: 'open'}); nestedShadowRoot.innerHTML = ` <div id="nested_shadow_content"><div>nested text</div></div> `; </script> </body> </html>
Version data entries
11 entries across 11 versions & 4 rubygems