PATCH - Add offset* methods to HTMLElement API

Jason Keirstead jason at keirstead.org
Wed Jan 12 00:26:13 GMT 2005


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.

Non-element nodes don't have offset positions. 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. I don't see how this is different than 
calling impl->renderer()

> And make them all return long in the interface (regardless of the
> implementation).

I do understand this part though. 

-- 
Jason Keirstead
http://www.keirstead.org




More information about the kfm-devel mailing list