W
webEater
In XHTML mode (application/xhtml+xml) Firefox does not know offset
properties (offsetParent/Left/Top). In all the other browsers it works.
Does someone has the same problem or knows a solution for this?
Example:
....
<body>
<div><div id="hello">Hey</div></div>
<div id="debug"></div>
<script type="text/javascript">
//<![CDATA[
alert(document.getElementById('hello').offsetParent);
//]]>
</script>
</body>
....
In Firefox offsetLeft and offsetTop is 0, the script above shows null
as result. Can somebody help me?
Andi
properties (offsetParent/Left/Top). In all the other browsers it works.
Does someone has the same problem or knows a solution for this?
Example:
....
<body>
<div><div id="hello">Hey</div></div>
<div id="debug"></div>
<script type="text/javascript">
//<![CDATA[
alert(document.getElementById('hello').offsetParent);
//]]>
</script>
</body>
....
In Firefox offsetLeft and offsetTop is 0, the script above shows null
as result. Can somebody help me?
Andi