webEater wrote:
Quote:
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').offsetParen t);
//]]>
</script>
>
</body>
...
>
In Firefox offsetLeft and offsetTop is 0, the script above shows null
as result. Can somebody help me?
>
Andi
>
XHTML MIME types are not ready for prime time in a lot of respects :-P
For example, there is no such thing as incremental loading of an XHTML
document served with the proper MIME type.
If you're keen on using application/xhtml+xml anyway, you might ask in
mozilla.dev.tech.javascript on news.mozilla.org - they will be far
better equipped to handle mozilla-specific javascript questions.
Also try mozilla.dev.tech.dom.
Jeremy