W3C home > Mailing lists > Public > www-dom-ts@w3.org > February 2002

Test guard for HTML level 1 only tests

From: Curt Arnold <carnold@houston.rr.com>
Date: Mon, 25 Feb 2002 23:31:54 -0600
Message-ID: <004b01c1be86$e6953dc0$a800a8c0@CurtMicron>
To: <www-dom-ts@w3.org>
There were certain breaking changes in DOM L2 HTML where the correct behavior for L2 is different than the behavior for L1.  I just added an additional attribute to the <hasFeature> test prerequisite so that you can define a test that is valid only if a particular feature is not supported.

For the upcoming DOM L1 HTML tests where the L2 behavior is different and the L1 test should fail for L2 supporting implementations (and only tests like that), do something like:

<test>
    <metadata/>
    <!--  this test does not apply when the implementation supports HTML L2   -->
    <hasFeature feature="HTML" version="2.0" value="false"/>
    <var.../>
</test>
Received on Tuesday, 26 February 2002 00:40:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:34:04 UTC