Created
December 16, 2009 20:38
-
-
Save pure/258145 to your computer and use it in GitHub Desktop.
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div> | |
<a><h1></h1><div>abc</div></a> | |
</div> | |
<script> | |
//this line fails in FF | |
document.getElementsByTagName('h1')[0].innerHTML = 'some H1'; | |
//show the result | |
document.write(document.getElementsByTagName('div')[0].innerHTML.replace(/</g, '<').replace(/>/g, '>')); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment