PATCH - Add offset* methods to HTMLElement API

Leo Savernik l.savernik at aon.at
Wed Jan 12 11:34:45 GMT 2005


Am Mittwoch, 12. Januar 2005 01:26 schrieb Jason Keirstead:
> On January 11, 2005 08:05 pm, Leo Savernik wrote:
> > Not yet. For each public DOM-method there must be an implementation in
> > the respective implementation, i. e.:
> >
> > DOM::Node::offsetTop -> DOM::NodeImpl::offsetTop -> (whatever)
> > ...
>
> But they aren't methods of DOM::Node, they are methods of HTMLElement.

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.
>
> Non-element nodes don't have offset positions. 

Oh, they have. Just don't let you be distracted from what ECMA-Script is 
limited to.

> Also, there are a bunch of 
> other HTMLElement methods that behave this way. For example, see title(),
> lang(), dir(), these have no simmilar method in their impl(), they call
> impl() methods get/set attributes. 

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.

mfg
 Leo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050112/0d63f367/attachment.sig>


More information about the kfm-devel mailing list