[whatwg] Node inDocument
arv at chromium.org
Mon Aug 29 18:49:48 PDT 2011
Node inDocument seems cleaner but I'd be happy with contains moved to
Node so that Document could optimize this.
On Mon, Aug 29, 2011 at 18:11, Bjoern Hoehrmann <derhoermi at gmx.net> wrote:
> * Erik Arvidsson wrote:
>>compareDocumentPosition is a terrible API but I guess there is nothing
>>preventing implementors to optimize the case where one node is the
> There is a proprietary Element.contains method implemented by some. The
> method could be put on the Document interface in which case you could do
> `node.ownerDocument.contains(node)` which seems quite fair.
> 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/
More information about the whatwg