W3C home > Mailing lists > Public > www-dom-ts@w3.org > June 2003

Re: DOM 2 Core test issues (was Re: DOMImplementation.hasFeature and 'Core', 'XML' and '1.0'.)

From: Curt Arnold <carnold@houston.rr.com>
Date: Thu, 26 Jun 2003 00:48:56 -0500
Message-ID: <3EFA8948.4010005@houston.rr.com>
To: Tantek Çelik <tantek@cs.stanford.edu>, www-dom-ts@w3.org

Tantek Çelik wrote:

>>Message-ID: <3A92DD77.7C9676BC@w3.org>
>>Date: Tue, 20 Feb 2001 16:11:19 -0500
>>From: Philippe Le Hegaret <plh@w3.org>
>>To: Martijn Pieters <mj@digicool.com>
>>Cc: www-dom@w3.org
>>Subject: Re: DOMImplementation.hasFeature and 'Core', 'XML' and '1.0'.
>>
>>Martijn Pieters wrote:
>>    
>>
>>>So, should a DOM level 2 implementation return true on hasFeature('Core',
>>>'1.0) or hasFeature('XML', '1.0')? I *think* it should, but would like to
>>>hear confirmation.
>>>      
>>>
>>The definition of version '1.0' is driven by the DOM Level 1 specification.
>>The DOM Level 2 specification doesn't say anything about
>>hasFeature('Core', '1.0') and I don't think it has to, given that you can't
>>expect a DOM Level 1 implementation to return true.
>>hasFeature('XML', '1.0') must definitively return true for a DOM Level 2
>>implementation since DOM Level 2 is build on top of DOM Level 1.
>>
>>Philippe
>>    
>>
>
>Redirecting a reply to www-dom-ts since I am raising a DOM 2 Core Test Suite
>issue (in response to a message over two years old!).
>
>I tried searching the archives, and this is the most recent relevant
>reference I could find to the question of whether it is correct for the test
>suite to test hasFeature("Core","1.0").
>
>I don't think the DOM 2 Core Test Suite should be performing that check,
>since no DOM 1 Core implementation could be required to return true for that
>since "Core" wasn't added as a feature flag until DOM 2.
>
>The following tests in the DOM 2 Core Test Suite appear to make that
>assumption however, and thus should be fixed to not expect
>hasFeature("Core","1.0") to return a meaningful value.
>
> isSupported03.html
> isSupported08.html
> isSupported12.html
>
>Thanks,
>
>Tantek
>
>---------------------------------------------------------------------------
>Tantek Çelik                                         tantek@cs.stanford.edu
>Tasman Development Lead, Microsoft Corporation        tantekc@microsoft.com
>Representative to W3C CSS and HTML working groups
>---------------------------------------------------------------------------
>
>
>
>  
>

http://www.w3.org/TR/DOM-Level-2-Core/*Core.html#*ID-5CED94D7 has:


|version| of type |DOMString| 
<http://www.w3.org/TR/DOM-Level-2-Core/core.html#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|.

    This was apparently interpreted by NIST and the Xerces-J team (maybe
    in response to a NIST test) that "2.0" and "1.0" should be
    equivalent.  I do not know of any definitive WG decision on this issue.

    I logged this as http://www.w3.org/Bugs/Public/show_bug.cgi?id=239
Received on Thursday, 26 June 2003 01:48:55 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 6 April 2009 12:58:48 GMT