So the API for document.getElementById in Internet Explorer 7 and prior returns for and ID or a name.  Meaning

<input type="text" value="1" name="iesucks" />

<script>alert(document.getElementById('iesucks');</script>


alerts a value of '1' no problem.  Oh, and guess what, it's not case sensitive either!


Hooray, so then that means if you have, oh say, a META tag like so

<meta name="Description" content="The ultimate IE Sucks blog" />


and an input box such as

<input type="text" id="description" value="IE SUCKS!" />


suddenly document.getElementById('description').value returns 'undefined' because it's looking for a value attribute in the META tag.  Brilliant, IE devs, damned brilliant.
Posted by Ellyoda Sat, 08 Nov 2008 04:00:02 (comments: 4)
 
Sat, 08 Nov 2008 04:32:36

.............yes.

 
Sat, 08 Nov 2008 18:40:32

All I got from that was, "IE sucks."  LOL

 
Sun, 09 Nov 2008 10:32:28

So is that why I keep getting blank pages? Has the mystery been solved? !

 
Tue, 11 Nov 2008 23:05:02

I guess that explains why IE is a mess when it comes to this site.

Log in or Register for free to comment
Recently Spotted:
robio (6m)
Login @ The VG Press
Username:
Password:
Remember me?