0
|
1 |
<?xml version="1.0" standalone="no"?>
|
|
2 |
<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
|
|
3 |
<!--
|
|
4 |
|
|
5 |
Copyright (c) 2004 World Wide Web Consortium,
|
|
6 |
(Massachusetts Institute of Technology, Institut National de
|
|
7 |
Recherche en Informatique et en Automatique, Keio University). All
|
|
8 |
Rights Reserved. This program is distributed under the W3C's Software
|
|
9 |
Intellectual Property License. This program is distributed in the
|
|
10 |
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
11 |
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
12 |
PURPOSE.
|
|
13 |
|
|
14 |
See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
|
15 |
|
|
16 |
-->
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="domconfigdatatypenormalization2">
|
|
21 |
<metadata>
|
|
22 |
<title>domconfigdatatypenormalization2</title>
|
|
23 |
<creator>Curt Arnold</creator>
|
|
24 |
<description>Setting "datatype-normalization" to true also forces "validate" to true.</description>
|
|
25 |
<date qualifier="created">2004-02-24</date>
|
|
26 |
<subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#parameter-datatype-normalization"/>
|
|
27 |
<subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#DOMConfiguration"/>
|
|
28 |
</metadata>
|
|
29 |
<var name="domImpl" type="DOMImplementation"/>
|
|
30 |
<var name="doc" type="Document"/>
|
|
31 |
<var name="domConfig" type="DOMConfiguration"/>
|
|
32 |
<var name="nullDocType" type="DocumentType" isNull="true"/>
|
|
33 |
<var name="canSet" type="boolean"/>
|
|
34 |
<var name="state" type="boolean"/>
|
|
35 |
<var name="parameter" type="DOMString" value='"datatype-normalization"'/>
|
|
36 |
<implementation var="domImpl"/>
|
|
37 |
<createDocument var="doc" obj="domImpl" namespaceURI='"http://www.w3.org/1999/xhtml"' qualifiedName='"html"' doctype="nullDocType"/>
|
|
38 |
<domConfig var="domConfig" obj="doc" interface="Document"/>
|
|
39 |
<!-- set validate to false -->
|
|
40 |
<setParameter obj="domConfig" name='"validate"' value="false"/>
|
|
41 |
<canSetParameter var="canSet" obj="domConfig" name="parameter" value="true"/>
|
|
42 |
<if><isTrue value="canSet"/>
|
|
43 |
<setParameter obj="domConfig" name="parameter" value="true"/>
|
|
44 |
<getParameter var="state" obj="domConfig" name='"validate"'/>
|
|
45 |
<assertTrue actual="state" id="validateSet"/>
|
|
46 |
</if>
|
|
47 |
</test>
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|