
02-28-2009
|
|
|
|
Re: How to break IE7 on Vista
Patient (demonstrating): "Doctor, it hurts when I do this!"
Doctor: "Don't do that."
Don't do that.
Brian wrote:
> If you load the following HTML in IE7 and drag the text that says
> "drag this" from the middle, the mouse will stop responding. In a more
> complex page, this can crash IE.
>
> <html>
> <head>
> <script language="javascript"><!--
> function setupBug() {
> var element = document.createElement('div');
> element.appendChild(document.createTextNode("I should be
> invisible"));
> window._elem = element;
> var i = 0;
> setInterval(function() { i++; }, 10);
> }
> function runBug() {
> window._elem.attachEvent("onmousemove", function(event) {
> alert(event);
> });
> window._elem.setCapture();
> }
> // -->
> </script>
> </head>
> <body onLoad='setupBug()'>
> Demonstration of an IE bug
> <div onmousedown="runBug()">
> Drag this
> </div>
> </body>
> </html>
|