Skip to content

Instantly share code, notes, and snippets.

@robhrt7
Last active August 30, 2015 13:11
Show Gist options
  • Save robhrt7/60660e22eb396ac8ddcc to your computer and use it in GitHub Desktop.
Save robhrt7/60660e22eb396ac8ddcc to your computer and use it in GitHub Desktop.
<!-- Template to be transformed into Shadow DOM -->
<template>
<a href="" class="button">Button</a>
<script>
document.querySelectorAll('.button'); // Document is global, but how to reference current Shadow DOM document?
</script>
<template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment