W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Re: [Erratum] core-14. DOMImplementation.hasFeature (Re:hasFeature with "unspecified" version)

From: Philippe Le Hegaret <plh@w3.org>
Date: Tue, 21 Aug 2001 16:50:11 -0400
Message-ID: <3B82C983.4D232401@w3.org>
To: Thomas Much <thomas@snailshell.de>
Cc: www-dom@w3.org
Thomas Much wrote:
> 
> am 11.07.2001 23:57 Uhr schrieb Philippe Le Hegaret unter plh@w3.org:
> 
> > http://www.w3.org/2000/11/DOM-Level-2-errata#core-14
> 
>   "[...] If the version is null or empty string, supporting any version of
>    the feature causes the method to return true."
> 
> Maybe this should better read
> 
>   "If the version is null (or undefined) or empty string..."
>                           ^^^^^^^^^^^^^^
> because in ECMAScript the most common way to not supplying an argument is
> leaving that argument "undefined" (which is a valid ECMAScript value), so
> you'd just call
> 
>   document.implementation.hasFeature("XML")
> 
> instead of
> 
>   document.implementation.hasFeature("XML",null)

It seems that the undefined value is not supported in Mozilla. We'd better
stick with our current wording and let the implementations dealing with the
undefined value if they want too (but the spec will not recommend to do that).

Philippe
Received on Tuesday, 21 August 2001 16:50:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT