W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2008

Re: Behavior of querySelector/querySelectorAll with |div and *|div

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 07 Jul 2008 22:34:59 -0400
Message-ID: <4872D253.6060008@mit.edu>
To: Sam Weinig <weinig@apple.com>, "public-webapps@w3.org >> \"public-webapps@w3.org\"" <public-webapps@w3.org>

Sam Weinig wrote:
> I don't think it is clear in the Selectors API spec what the behavior 
> should be when calling querySelector or querySelectorAll with a selector 
> string that contains selectors like "|div" or "*|div" in the case of an 
> implementation that does not support the NSResolver part.

It seems pretty clear to me in terms of the namespace lookups that need (or 
rather don't need to happen).  It would seem to me that since neither of those 
cases needs a namespace lookup, it should just work.  "*|div" should act like 
"div", while "|div" should select elements in the null namespace with the 
localName "div".

On the other hand, "x|div" should throw NAMESPACE_ERR if there is no NSResolver.

Received on Tuesday, 8 July 2008 02:35:44 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:11 UTC