Skip to content

Instantly share code, notes, and snippets.

@sigmundch
Created October 7, 2014 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sigmundch/c97d0668c11bebba9017 to your computer and use it in GitHub Desktop.
Save sigmundch/c97d0668c11bebba9017 to your computer and use it in GitHub Desktop.
textContent shows up as null with the polyfill.
<script src='platform.js'></script>
<script>
var a = document.createElement('div');
var r = a.createShadowRoot();
console.log('before: ' + a.innerHTML + ' ' + a.textContent);
a.textContent = null;
console.log('after: ' + a.innerHTML + ' ' + a.textContent);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment