W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2001

hasFeature with "unspecified" version

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Wed, 2 May 2001 11:47:56 -0600
Message-ID: <B2C1451A181BD411B88A00E018C1C19C08AC13@thor.aeathtl.com>
To: "'xmlconf-developer@lists.sourceforge.net'" <xmlconf-developer@lists.sourceforge.net>
Cc: "'www-dom@w3.org'" <www-dom@w3.org>
The NIST Java Test domimplementationFeatureNoVersion basically
calls asserting that docimpl.hasFeature("XML","") == true.

The DOM Level 2 spec says this about the version parameter:

version of type DOMString 

This is the version number of the feature to test. In Level 2, the string can be either "2.0" or "1.0". If the version is not specified, supporting any version of the feature causes the method to
return true.

The most obvious way of "not specifying" the version would be to call
docimpl.hasFeature("XML",null).

It would probably be good to add an explicit test with a null version parameter
and to clarify the spec on how a zero-length version parameter should be interpreted.
Received on Wednesday, 2 May 2001 13:49:50 GMT

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