W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2011

[whatwg] Node inDocument

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 01 Sep 2011 10:39:51 +0200
Message-ID: <op.v04fopyt64w2qv@annevk-macbookpro.local>
On Thu, 01 Sep 2011 00:18:26 +0200, Erik Arvidsson <arv at chromium.org>  
wrote:
> After thinking more about this we believe that moving contains to Node
> is a better alternative. The problem with Node inDocument is that it
> does not say which document it is in so code would need to also check
> ownerDocument to be robust in the presence of frames and multiple
> windows.

You got it. Now everyone please implement :-)

http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-node-contains


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 1 September 2011 01:39:51 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:36 UTC