W3C home > Mailing lists > Public > public-webapi@w3.org > April 2008

Re: [selectors-api] NSResolver moving nodes between documents

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 14 Apr 2008 20:32:01 -0700
Message-ID: <480421B1.80005@sicking.cc>
To: Boris Zbarsky <bzbarsky@MIT.EDU>
CC: Web APIs WG <public-webapi@w3.org>

Boris Zbarsky wrote:
> Jonas Sicking wrote:
>> So this generally can't happen, except through implementation specific 
>> quirks, no? I.e. a page can't create an NSResolver mutates nodes to 
>> the point where it no longer has access to the page.
> 
> Sure it can.  Setting document.domain will do the trick, easily.

Hmm.. good point. Though I still think that you basically have to 
intentionally shoot yourself in the foot for this to happen, and so it's 
a case that is unlikely to come up and cause interoperability issues.

Leaving it explicitly undefined sounds like a good idea though.

/ Jonas
Received on Tuesday, 15 April 2008 03:34:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 15 April 2008 03:34:36 GMT