OLD | NEW |
(Empty) | |
| 1 <!doctype html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <script> |
| 5 test(() => { |
| 6 document.registerElement('x-button', {extends: 'button'}); |
| 7 var notFoundErrorThrown = 0; |
| 8 var elem; |
| 9 try { |
| 10 elem = document.createElement('button', {is: 'unknown'}); |
| 11 } catch (NotFoundError) { |
| 12 notFoundErrorThrown = 1; |
| 13 } |
| 14 assert_equals(elem, undefined); |
| 15 assert_equals(notFoundErrorThrown, 1); |
| 16 }, "Test for Issue 661968: If 'is' is not null and custom element definition not
found, NotFoundError should be thrown"); |
| 17 </script> |
OLD | NEW |