Re: Change to Attr interface in light of XPath

Boris Zbarsky <[email protected]>
Newsgroups gmane.comp.web.dom.general
Message-ID <[email protected]>
On 2/17/14 4:38 PM, Justin Summerlin wrote:
> This is somewhat problematic since accessing
> the parent element is needed for our use.

Exposing a .parentNode on Attr (returning the element it came from) does 
not require all the other Node baggage (child nodes, etc, etc).

If there are use cases for a .parentNode, as here, exposing it seems fine.

-Boris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.