Skip to content

Instantly share code, notes, and snippets.

@visnup
Created January 23, 2009 00:17
Show Gist options
  • Save visnup/50809 to your computer and use it in GitHub Desktop.
Save visnup/50809 to your computer and use it in GitHub Desktop.
kill IE
<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