OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
2 <title>Test of interfaces</title> | 3 <title>Test of interfaces</title> |
3 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> | 4 <link rel="author" title="Ms2ger" href="mailto:Ms2ger@gmail.com"> |
4 <link rel="help" href="https://html.spec.whatwg.org/multipage/"> | 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/"> |
5 <link rel="help" href="https://heycam.github.io/webidl/#host-objects"> | 6 <link rel="help" href="https://heycam.github.io/webidl/#host-objects"> |
6 <link rel="help" href="http://www.ecma-international.org/publications/files/ECMA
-ST/ECMA-262.pdf#page=96"> | 7 <link rel="help" href="http://www.ecma-international.org/publications/files/ECMA
-ST/ECMA-262.pdf#page=96"> |
7 <script src="/resources/testharness.js"></script> | 8 <script src="/resources/testharness.js"></script> |
8 <script src="/resources/testharnessreport.js"></script> | 9 <script src="/resources/testharnessreport.js"></script> |
9 <script src=interfaces.js></script> | 10 <script src=interfaces.js></script> |
10 <div id="log"></div> | 11 <div id="log"></div> |
11 <script> | 12 <script> |
(...skipping 25 matching lines...) Expand all Loading... |
37 do_test(a[0], a[1], "useNS"); | 38 do_test(a[0], a[1], "useNS"); |
38 | 39 |
39 // Only run the createElement variant if the input is all-lowercase, because c
reateElement | 40 // Only run the createElement variant if the input is all-lowercase, because c
reateElement |
40 // case-folds to lowercase. Custom elements are required to use all-lowercase
to implement | 41 // case-folds to lowercase. Custom elements are required to use all-lowercase
to implement |
41 // HTMLElement, otherwise they use HTMLUnknownElement per spec. Example: "foo-
BAR". | 42 // HTMLElement, otherwise they use HTMLUnknownElement per spec. Example: "foo-
BAR". |
42 if (a[0] === a[0].toLowerCase()) { | 43 if (a[0] === a[0].toLowerCase()) { |
43 do_test(a[0].toUpperCase(), a[1]); | 44 do_test(a[0].toUpperCase(), a[1]); |
44 } | 45 } |
45 }) | 46 }) |
46 </script> | 47 </script> |
OLD | NEW |