Skip to content

Instantly share code, notes, and snippets.

@crysfel
Created May 11, 2015 18:36
Show Gist options
  • Save crysfel/8674481f04d59af22d6f to your computer and use it in GitHub Desktop.
Save crysfel/8674481f04d59af22d6f to your computer and use it in GitHub Desktop.
Web Component Shadow DOM
var host = document.body.createShadowRoot();
host.innerHTML = "<p>I'm a <em>shadow</em> dom!</p>";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment