W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2001

Re: DOMImplementation.hasFeature

From: Martijn Pieters <mj@digicool.com>
Date: Fri, 23 Mar 2001 09:53:24 +0100
To: Paolo Casarini <casarini@CS.UniBO.IT>
Cc: www-dom@w3.org
Message-ID: <20010323095324.C11415@zopatista.com>
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 GMT

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