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

* Boris Zbarsky 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?
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.

>The spec should clearly specify what a UA is expected to do here.  My 
>personal preference is that if the ownerDocument has changed the UA 
>should throw an exception, since there is no way to return a "correct" 
>result at that point.

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?
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 

Received on Friday, 28 March 2008 16:58:18 UTC