Damn it, IE
Log in or Register for free to comment
Recently Spotted:
robio (1m) Angry_Beaver (3m)
<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