Re: DOMImplementation.hasFeature

On Fri, Mar 23, 2001 at 12:12:59AM +0100, Paolo Casarini wrote:
> I'm near to release a DOM level 2 implementation that implements all
> intefaces of Core and XML modules for GNOME.
> 
> Is it right if my implementation of DOMImplementation.hasFeature method
> have the following behavior?
> 
> DOMImplementation.hasFeature("Core", NULL) --> TRUE
> DOMImplementation.hasFeature("XML", NULL) --> TRUE
> DOMImplementation.hasFeature("Core", "2.0") --> TRUE
> DOMImplementation.hasFeature("XML", "2.0") --> TRUE
> DOMImplementation.hasFeature("Core", "1.0") --> TRUE

The 'Core' feature was implicit in DOM Level 1, so many specifications
return false. No application will normally ask for it; implementing
DOMImplementation.hasFeature implicetly means that the Core level 1
feature is implemented.

> DOMImplementation.hasFeature("XML", "1.0") --> TRUE
> else FALSE

Everything else is correct.

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------

Received on Friday, 23 March 2001 03:53:36 UTC