PATCH - Add offset* methods to HTMLElement API
Jason Keirstead
jason at keirstead.org
Wed Jan 12 12:50:27 GMT 2005
On January 12, 2005 07:34 am, you wrote:
> HTML is wrong. Every node has an offset, be it an HTML node, an XML node,
> or some other yet-to-be-invented node. So the information must be provided
> on a general level.
No it doesnt.. An XML node has no offset because it hasn't been rendered.
All these properties are based on the rendered location of the node.. an XML
node is not "rendered", per say. It is the HTML node that is rendered. The
XML DOM never has properties in it relating to rendering.
For example - what is the offsetTop of an XML DOM Node, that is in a Document
object that is not being rendered, but rather, transformed via XSL? It makes
no sense...
> The layers must stay separated, i. e. the DOM interfaces may call DOM
> implementations, but accessing the rendering tree is to be done from within
> the DOM implementations.
>
> title(), lang() only access methods of their respective implementation.
OK I see the distinction. I will move the references to renderer to the
impl().
But I still don't think it should be in the DOM::Node impl(), as I said above,
it makes no sense to me.
--
Jason Keirstead
http://www.keirstead.org
More information about the kfm-devel
mailing list