Re: L3 Core Node comments

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.

Philippe

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