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: Thomas Much <thomas@snailshell.de>
Date: Thu, 12 Jul 2001 13:13:43 +0200
To: <www-dom@w3.org>
CC: Philippe Le Hegaret <plh@w3.org>
Message-ID: <B7734F28.5B44%thomas@snailshell.de>
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)

bye, Thomas

-- 
http://www.muchsoft.com/inscript/
http://www.icab.de
Received on Thursday, 12 July 2001 07:13:46 GMT

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