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 21:40:07 +0200
To: <www-dom@w3.org>
CC: Curt Arnold <carnold@houston.rr.com>
Message-ID: <B773C928.5BA3%thomas@snailshell.de>
am 12.07.2001 18:35 Uhr schrieb Curt Arnold unter carnold@houston.rr.com:

> Basically, you would want to results of:
> impl.hasFeature("XML","1.0");
> impl.hasFeature("XML","");
> impl.hasFeature("XML",null);
> impl.hasFeature("XML",undefined);
> impl.hasFeature("XML");

(I checked Mac browsers only)

MSIE5:mac is not yet fully ECMA262-3 compatible, so the last but one line
won't run as "undefined" is not exposed (as it should be). Replace
"undefined" by "void 0" (which yields undefined), and MSIE5:mac returns true
on all five cases.

Netscape6/Mozilla do not allow less than two parameters, they throw an
exception on the last line. If you only run the first four lines, both
Netscape6 and Mozilla return true/true/false/false.

bye, Thomas

Received on Thursday, 12 July 2001 15:40:13 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:08 UTC