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

Re: [selectors-api] What DOM feature "Selectors API" belongs to?

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Wed, 09 Jul 2008 13:32:42 +0200
Message-ID: <4874A1DA.1000203@lachy.id.au>
To: João Eiras <joao.eiras@gmail.com>
Cc: Sergey <castonet@yahoo.co.uk>, public-webapps <public-webapps@w3.org>, Kartikaya Gupta <kagupta@rim.com>

Moving to public-webapps from public-webapi. See original thread here.

João Eiras wrote:
>>  if (document.querySelector) {
>>    // Supported
>>  } else {
>>    // Not suported
>>  }
> Too bad that only works with ecmascript.
> Such syntax is not valid in other languages.

Is there really any demand from implementers of other languages to have 
a feature sting defined for hasFeature()?  Is there any evidence that 
people make use of existing feature strings in their programs, using any 

Kartikaya Gupta wrote:
> Ian Hickson wrote:
>> Kartikaya Gupta wrote:
>>> What I think *is* inside the scope is to ensure that user-agents have some 
>>> unambiguous way to state whether or not they claim to implement the 
>>> specification. I think the feature string is much more reliable way to 
>>> do that than checking the existence of a "querySelector" method.
>> Why would any browser implementor implement one and not the other?
> Because they might already be using the "querySelector" method for some
> completely unrelated feature.

This seems like a very unrealistic edge case, considering we went to a 
lot of effort to find names that didn't clash with existing features in 
many implementations, not only browsers.

Since I've not seen any support for this proposal from any implementers 
at all, and no substantial evidence that people actually make use of 
existing feature strings in any environment, I'm not prepared to include 
it at this stage.

Lachlan Hunt - Opera Software
Received on Wednesday, 9 July 2008 11:33:24 UTC

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