Created
September 7, 2011 22:14
-
-
Save valueof/1201958 to your computer and use it in GitHub Desktop.
Internet Explorer 8 doesn't have querySelector inside of an iframe
This file contains 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
<iframe id="hey"></iframe> | |
<script> | |
var hey = document.getElementById("hey"); | |
alert(document.querySelector); | |
hey.contentWindow.document.write('<html><scr' + 'ipt>alert(document.querySelector);</scr' + 'ipt></html>'); | |
hey.contentWindow.document.close(); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment