Another Reason to Hate IE

Here’s one that’s just got me. If you use a custom tag in HTML, FireFox correctly picks up any children it has whereas IE doesn’t. For instance, given the following HTML:
 
<myTag id="testTag">
   <div>Hello</div>
</myTag>
 
<script language="JavaScript">
   alert(document.getElementById("testTag").childNodes.length);
</script>
 
Internet Explorer will give a result of 0 but FireFox reports 1 – surely correct?
Advertisements
This entry was posted in Computers and Internet. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s