1 <html xmlns=
"http://www.w3.org/1999/xhtml">
3 <table id=
"results" width='
100%'
>
5 <th>case sensitive?
</th>
16 <!-- First a few elements created by the parser -->
17 <div id=
"parserTests" style='display: none'
>
18 <p id=
"test1" case='first' CASE='second'
></p>
19 <foobar id=
"test2" case='first' CASE='second'
></foobar>
20 <svg xmlns=
"http://www.w3.org/2000/svg" id=
"test3" case='first' CASE='second'
></svg>
23 <div id=
"javascriptTests" style='display: none'
>
26 <script src=
"resources/attr-case-sensitivity.js"></script>
28 <script type=
"text/javascript">
30 if (window
.testRunner
)
31 testRunner
.dumpAsText();
33 resultLog("Parser Tests:")
34 checkAttribute(getTestElement(1), 'case');
35 checkAttribute(getTestElement(2), 'case');
36 checkAttribute(getTestElement(3), 'case');
38 resultLog("Javascript Tests:")
39 var element
= createElementForCheck(4, 'p');
40 createAndCheckAttributes(element
, 'testattr');
41 createAndCheckAttributes(element
, 'namespacetest', 'http://www.example.com/');
42 createAndCheckAttributes(element
, 'href', 'http://www.w3.org/1999/xlink');
44 element
= createElementForCheck(5, 'foobar');
45 createAndCheckAttributes(element
, 'testattr');
46 createAndCheckAttributes(element
, 'namespacetest', 'http://www.example.com/');
47 createAndCheckAttributes(element
, 'href', 'http://www.w3.org/1999/xlink');
49 element
= createElementForCheck(6, 'barbar', 'http://www.example.com/');
50 createAndCheckAttributes(element
, 'testattr');
51 createAndCheckAttributes(element
, 'namespacetest', 'http://www.example.com/');
52 createAndCheckAttributes(element
, 'href', 'http://www.w3.org/1999/xlink');
54 element
= createElementForCheck(7, 'svg', 'http://www.w3.org/2000/svg');
55 createAndCheckAttributes(element
, 'testattr');
56 createAndCheckAttributes(element
, 'namespacetest', 'http://www.example.com/');
57 createAndCheckAttributes(element
, 'href', 'http://www.w3.org/1999/xlink');