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

DOMImplementation.hasFeature and 'Core', 'XML' and '1.0'.

From: Martijn Pieters <mj@digicool.com>
Date: Mon, 19 Feb 2001 15:43:34 +0100
To: www-dom@w3.org
Message-ID: <20010219154334.A32535@zopatista.com>
Hi,

It is unclear to me how a DOM level 2 compliant DOM implementation should
react on a DOMImplementation.hasFeature('Core', '1.0') or
.hasFeature('XML', '1.0') call.

In DOM level 1, what are now the 'Core' and 'XML' were together called the
'XML' feature. Returning true on 'XML', '1.0' meant that both the
fundamental and the extended interfaces were supported. This was not
consistent with the rest of the DOM spec, because the Extended interfaces
were optional for 'HTML' feature DOM implementations.

In DOM level 2, with the clearer 'Core' feature name for the fundamental
interfaces it now is unclear to me if hasFeature should still return true
for hasFeature('XML', '1.0'). I can also image that returning true for
hasFeature('Core', '1.0') is a good idea; after all, we also support the
DOM level 1 methods of the fundamental interfaces.

Would this be the compliant behaviour? Or would this make a DOM
implementation non-compliant? Or is this outside the scope of the DOM
specification; a DOM can return either true or false as this is undefined?

-- 
Martijn Pieters
| Software Engineer  mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
---------------------------------------------
Received on Monday, 19 February 2001 09:43:37 GMT

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