Forum > Blogs > Damn it, IE
Damn it, IE
avatar
Country: US
Comments: 6470
News Posts: 413
Joined: 2008-06-21
 
Sat, 08 Nov 2008 04:00:02
0
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.

---

Tell me to get back to rewriting this site so it's not horrible on mobile
avatar
Country: CA
Comments: 654
News Posts: 6
Joined: 2008-06-21
 
Sat, 08 Nov 2008 04:32:36
0

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


avatar
Country: US
Comments: 17263
News Posts: 2808
Joined: 2008-06-21
 
Sat, 08 Nov 2008 18:40:32
0

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

The VG Press

avatar
Country: DE
Comments: 48431
News Posts: 59783
Joined: 2008-06-21
 
Sun, 09 Nov 2008 10:32:28
0

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

avatar
Country: US
Comments: 31778
News Posts: 1717
Joined: 2008-06-22
 
Tue, 11 Nov 2008 23:05:02
0

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

660896.png
Log in or Register for free to comment
Recently Spotted:
Té_Rojo (4m)
Login @ The VG Press
Username:
Password:
Remember me?