W3C home > Mailing lists > Public > www-dom-ts@w3.org > October 2001

RE: isSupported12.xml

From: Arnold, Curt <Curt.Arnold@hyprotech.com>
Date: Thu, 25 Oct 2001 12:30:01 -0600
Message-ID: <70E215722F6AD511820A000103D141D40AA62F@thor.aeathtl.com>
To: "'www-dom-ts@w3.org'" <www-dom-ts@w3.org>

> [mb] That's only valid if the spec indicates what should 
> happen with an unrecognized or malformed feature or version.  
> In this case, no DOMExceptions are defined.  By the way, I 
> think that all of the isSupported tests could be replaced 
> with a modified version of isSupported12.xml, where we run 
> through all of the known features, and assert that a variable 
> = "done" after successful completion.

The spec says that No Exceptions are thrown.  Well, possibly unless you are passing a null string for feature (which might be covered by a general caveat in the Exceptions section).  Being able to
pass an arbitrary string that does not correspond to a well known feature and having a value returned is a behavior that is depended upon.  If the spec writers had intended for the implementation to
throw an exception if the feature or version did not been some expectation, it would have been explicitly stated.

> 
> In looking into this problem, we've also noticed that the 
> feature "XML" corresponds to all of the extended interfaces.  
> These interfaces do not have to be supported by a HTML-only 
> implementation, and therefore should not be included in core. 
>  Maybe we should identify a different tree, called XML, for 
> the tests that correspond to these interfaces, so that there 
> is a clear mapping to the spec.

Any test that starts by loading an XML document (as I believe that all the current tests do) should also support the "XML" feature.  When we start putting "HTML" tests into core (for core features
within an HTML implementation), then we would need to guard the XML specific tests with a <hasFeature feature="XML"/> in the prolog and HTML specific tests with a <hasFeature feature="HTML"/>
Received on Thursday, 25 October 2001 14:32:16 GMT

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