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

Re: L3 Core Node comments

From: Philippe Le Hegaret <plh@w3.org>
Date: 28 Aug 2003 15:13:05 -0400
To: Curt Arnold <carnold@houston.rr.com>
Cc: WWW DOM <www-dom@w3.org>
Message-Id: <1062097985.23315.196.camel@jfouffa.w3.org>

On Thu, 2003-07-31 at 00:12, Curt Arnold wrote:
> getFeature:
> It would be useful if there was some statement that if an 
> DOMImplementation.hasFeature(feature, version) returns true that 
> Node.getFeature(feature, version) could not return null or something 
> else that would allow you to always use getFeature() and not have to try 
> both getFeature() and casting.

You are comparing DOMImplementation.hasFeature and Node.getFeature
(instead of Node.isSupported and Node.getFeature?). if
Node.isSupported("+Events", "3.0"), then it is guarantee that getFeature
will work in that node with the same feature/version.

Received on Thursday, 28 August 2003 15:14:25 UTC

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