Created
October 7, 2014 19:24
-
-
Save sigmundch/c97d0668c11bebba9017 to your computer and use it in GitHub Desktop.
textContent shows up as null with the polyfill.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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