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

More thoughts on multi media-type tests

From: Curt Arnold <carnold@houston.rr.com>
Date: Wed, 28 Nov 2001 09:36:13 -0600
Message-ID: <001201c17822$6a696dc0$7600a8c0@CurtMicron>
To: <www-dom-ts@w3.org>
I've had some more thoughts about tests that can work on different media-types.  For example, most of the core tests can work on both XML and SVG implementations, most of the HTML tests could work on both XHTML and HTML implementations.

However, since some processors could support distinct DOM implementations for multiple document classes (for example, a browser could have a distinct implementation for XHTML and HTML), you can't just stiff the browser and pick one document class.

Another issue is that HTML implementations are case-insensitive and XHTML implementations are case-sensitive (at least on the Core methods).  The base tests should use lower case tagnames for parameters.  However, there should be some methods that test the case-insensitivity of HTML implementations.

To declare that a test depends on a case-insensitive implementation (i.e. HTML not XHTML), I would suggest adding an:

<implementationAttribute name="caseInsensitive" value="true"/>

to the prologue of a test.  Again most HTML tests should not have this which would allow it to test both XHTML and HTML implementations.

For tests that could apply to multiple media-types, probably would add a <mediaType> to test suites that would allow you to have an XHTML suite and an HTML (or XML and SVG) suite without having distinct XHTML and HTML versions of the tests.  Will think about that a little more.
Received on Wednesday, 28 November 2001 10:37:48 GMT

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