OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <body> |
| 5 <script> |
| 6 test(function() { |
| 7 var A = document.registerElement('x-foo', {extends: null, prototype: null}); |
| 8 assert_equals(new A().outerHTML, '<x-foo></x-foo>', |
| 9 'localName should not be "null" and type extension should not have "is"
attribute'); |
| 10 |
| 11 assert_equals(new A().localName, 'x-foo', |
| 12 'localName should be set to TYPE if extends is null'); |
| 13 |
| 14 }, 'type extension from null should be treated as if "extends" is not given'); |
| 15 </script> |
OLD | NEW |