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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 28 Mar 2008 12:32:47 -0500
Message-ID: <47ED2BBF.5060108@mit.edu>
To: Bjoern Hoehrmann <derhoermi@gmx.net>
CC: "Web APIs WG (public)" <public-webapi@w3.org>

Bjoern Hoehrmann wrote:
>> What is the correct behavior if a lookupNamespaceURI call moves nodes 
>> between documents?  In particular, what is the correct behavior is the 
>> Element node the call is being made on is moved to a different document 
>> during the lookupNamespaceURI call (using adoptNode)?
> Do I understand correctly that this is something scripts should not do?

Correct.  I think it's worth taking the HTML5 approach of defining both 
what documents are conforming and what to do with the non-conforming 

> I would be rather reluctant to define this so long as we don't also de-
> fine when and how many times the resolver is invoked, since depending on
> that, the results would not necessarily become more predictable.


> Would it be acceptable to include a general provision to the effect that
> if an implementation detects that resolvers manipulate documents in some
> undesirable way, they may throw an exception?

I would be happy with that, yes.

Received on Friday, 28 March 2008 17:33:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:25 UTC