Re: [selectors-api] Investigating NSResolver Alternatives

Lachlan Hunt wrote:
>>> Although it still has the requirement to throw a NAMESPACE_ERR when
>>> namespace prefixes that need to be resolved are encountered
>>>
>>> http://dev.w3.org/2006/webapi/selectors-api/
>>
>> In theory it might be better to throw NOT_SUPPORTED_ERR so going 
>> forward you can distinguish between the case where namespaces are not 
>> supported and the case where they are, but you forgot to bind a prefix 
>> to a namespace.
> 
> Done.

Uh... wait a sec.  If there is no NSResolver or equivalent and prefixes 
are used, that's forgetting to bind a prefix to a namespace (and should 
get NAMESPACE_ERR).  What cases are we trying to distinguish here, exactly?

The way I see it, all current impls should throw something if more than 
one arg is passed, and should throw NAMESPACE_ERR if a prefix needs to 
be resolved.

-Boris

Received on Wednesday, 16 July 2008 16:08:07 UTC