W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2014

Re: Change to Attr interface in light of XPath

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 18 Feb 2014 12:15:10 -0500
Message-ID: <5303951E.3020509@mit.edu>
To: www-dom@w3.org
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
Received on Tuesday, 18 February 2014 17:15:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:22 UTC