OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 test(function () { |
| 6 var A = document.registerElement('mixed-CASE-custom-TAG'); |
| 7 assert_true(document.createElement('MIXED-case-CUSTOM-tag') instanceof A); |
| 8 assert_true( |
| 9 document.createElement('MIXED-case-CUSTOM-tag', null) instanceof A); |
| 10 }, 'createElement is case insensitive for custom tags'); |
| 11 |
| 12 test(function () { |
| 13 var B = document.registerElement('mixed-CASE-type-EXTENSION', {extends: 'spa
n'}); |
| 14 assert_true(document.createElement('span', 'MIXED-case-TYPE-extension') |
| 15 instanceof B); |
| 16 }, 'createElement is case insensitive for type extensions'); |
| 17 </script> |
OLD | NEW |