Created
January 23, 2009 00:17
-
-
Save visnup/50809 to your computer and use it in GitHub Desktop.
kill IE
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
<script type="text/javascript"> | |
document.observe('dom:loaded', function() { | |
var li = new Element('li').update('li'); | |
$('a').update(li); | |
var killIE = true; | |
if (killIE) { | |
li.update('new name'); | |
} else { | |
$('a').update(); | |
li.update('new name'); | |
$('a').insert(li); | |
} | |
}); | |
</script> | |
<li> | |
<span id="a">some</span> | |
</li> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment