W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2011

Re: [DOM4] parent method

From: Sweeney, Kevin <Kevin.Sweeney@vimeo.com>
Date: Fri, 16 Dec 2011 11:03:06 -0500
To: Ojan Vafai <ojan@chromium.org>
CC: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <34646FB5-3BD7-49CB-8920-BCE657291AE8@vimeo.com>
Are you referring to the parents() method? I was under the impression that parent(selector) only grabbed the parent node if it matched the selector, while parents() would go up the ancestor tree.

2. What should happen in the following cases? My intuition is that they should all return either null or node.parentNode, but I don't feel strongly.

I would expect the same functionality as document.getElementById—all of your examples would return null.
Received on Sunday, 18 December 2011 12:22:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:36:59 UTC