Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(542)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/custom/create-element-dictionary-is-type-not-found.html

Issue 2479243002: If 'is' is not null and custom element definition not found, NotFoundError should be thrown (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Document.cpp » ('j') | third_party/WebKit/Source/core/dom/Document.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698