W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

measurements

From: Cameron Hart <cameron@bitshifter.co.uk>
Date: Mon, 29 Jan 2001 14:43:42 -0000
To: <www-dom@w3.org>
Message-ID: <JNELJHKNHEHEGABLDMEJMELKCAAA.cameron@bitshifter.co.uk>
Hi,

I've got a question on measuring HTML elements. IE and now Mozilla both
implement offsetWidth and offsetHeight. IE also has other properties for
getting the size of HTML elements such as scrollWidth and scrollHeight for
getting the content height of an element rather than what is actually
displayed (like a div with a size < content size). Measuring elements is
extremely useful when creating DHTML pages. I'm wondering why there is no
specification in the DOM for this kind of functionality? Is it an oversight,
or out of the scope of the DOM, or am I just missing something?

Thanks,

Cameron.
Received on Monday, 29 January 2001 09:47:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:48 GMT