Re: [selectors-api]

On Tue, 19 Feb 2008 09:38:52 +0100, Boris Zbarsky <bzbarsky@MIT.EDU> wrote:
> Lachlan Hunt wrote:
>> It's not clear to me what the spec should say to resolve this issue.   
>> Do you have any suggestions?
>
> My suggestion was to allow the implementation to throw as soon as it  
> detects any sort of misbehavior from the NSResolver.  Anne didn't like  
> it.  Given that the implementation isn't allowed to do this, what _is_  
> it allowed to do to comply with the "deal with broken or malicious  
> NSResolvers" text?

I think it has to go like this:

   1. Get default namespace / resolve namespace prefixes
   2. Run the group of selectors over the "current" DOM

And I like to believe that this is what the specification requires. But  
maybe we should make it explicit in the method section that step 1 has to  
happen first and that user agents are not allowed to do both at the same  
time.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>

Received on Tuesday, 19 February 2008 08:45:09 UTC