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

[whatwg] Node inDocument

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 30 Aug 2011 02:21:30 +0200
Message-ID: <83bo57hp1c5q4j2udc842fu2sb0sk6gvvn@hive.bjoern.hoehrmann.de>
* Erik Arvidsson wrote:
>As we were looking at mutation events we realized that we would like
>to expose whether a Node is in the document or not. Both WebKit and
>Gecko have an O(1) way of determine this. Today, to do this in script
>this is O(depth) which is clearly sub optimal.
>We are therefore suggesting adding the following to Node idl:
>readonly attribute boolean inDocument;

This is addressed by Node.compareDocumentPosition. Have you missed this
or is there some problem making that perform properly?
Bj?rn H?hrmann ? mailto:bjoern at hoehrmann.de ? http://bjoern.hoehrmann.de
Am Badedeich 7 ? Telefon: +49(0)160/4415681 ? http://www.bjoernsworld.de
25899 Dageb?ll ? PGP Pub. KeyID: 0xA4357E78 ? http://www.websitedev.de/ 
Received on Monday, 29 August 2011 17:21:30 UTC

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