|
Posted by Michael Winter on 12/22/66 11:24
[Follow-ups trimmed to a.html]
On 20/08/2005 22:47, Toby Inkster wrote:
[snip]
> Alternatively, try replacing the proprietary "document.documentElement"
> with "document.body", which is overall better supported.
The documentElement property isn't proprietary. It's defined in the W3C DOM.
documentElement of type Element, readonly
This is a convenience attribute that allows direct access to the
child node that is the root element of the document. For HTML
documents, this is the element with the tagName "HTML".
-- DOM 2 Core, 1.2 - Fundamental interfaces, Document interface
When in "Standards" mode, IE treats the HTML element as the canvas (not
BODY), so various dimension-related properties should be read from there.
Mike
--
Michael Winter
Prefix subject with [News] before replying by e-mail.
[Back to original message]
|