W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2002

Re: Resolution of XPath DOM LC issue B5

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Wed, 4 Sep 2002 12:43:02 -0400
To: www-dom@w3.org
Message-ID: <OF1DE37EC1.C1796F43-ON85256C2A.005AB086-85256C2A.005C86F3@us.ibm.com>

Alternative suggestion:

There had been discussion of moving the ownerElement attribute back into 
Node, to make it a general equivalent of XPath's concept of parent, saving 
them the coding hassle of 
        (node.getType()==Node.ATTR_NODE) ? node.getOwnerElement() : 
node.getParent()
and making the relationship between the DOM and XPath views somewhat more 
straightforward. This would also have to skip past EntityReference nodes, 
since those don't exist in the XPath model; I don't remember any other 
complications but it's been a while since I've looked at it.

Relatively simple architectural change, non-breaking, should be low impact 
on implementers and it'd close this issue in a manner which (I think) the 
XPath folks would actually be happy with rather than tolerant of.

Has this been considered and voted down, or did it simply fall through the 
cracks?

______________________________________
Joe Kesselman  / IBM Research
Received on Wednesday, 4 September 2002 12:43:45 GMT

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