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.
<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.
Recently Spotted:
*crickets*
.............yes.
All I got from that was, "IE sucks."
So is that why I keep getting blank pages? Has the mystery been solved? !
I guess that explains why IE is a mess when it comes to this site.