Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / attribute-case-sensitivity2.xhtml
blobc387a42bbe6c91d9974715466b2222f8f1d7fb61
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <body>
3 <table id="results" width='100%'>
4 <tr>
5 <th>case sensitive?</th>
6 <th>tag</th>
7 <th>namespace</th>
8 <th>id</th>
9 <th>attribute</th>
10 <th>namespace</th>
11 <th>first value</th>
12 <th>second value</th>
13 </tr>
14 </table>
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>
21 </div>
23 <div id="javascriptTests" style='display: none'>
24 </div>
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');
59 </script>
60 </body>
61 </html>