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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/custom-elements/registering-custom-elements/unresolved-elements-interface-html-unknown-element.html

Issue 1854003004: Import web-platform-tests@5a8700479d98852455bee6117558897867eb278a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 months 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Unresolved element interface must be HTMLUnknownElement, if the namespace is neither HTML Namespace nor SVG Namespace</title> 4 <title>Unresolved element interface must be HTMLUnknownElement, if the namespace is neither HTML Namespace nor SVG Namespace</title>
5 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru "> 5 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru ">
6 <meta name="assert" content="When an unresolved element is created, it's element interface must be HTMLUnknownElement, if the namespace is neither HTML Namespac e nor SVG Namespace"> 6 <meta name="assert" content="When an unresolved element is created, it's element interface must be HTMLUnknownElement, if the namespace is neither HTML Namespac e nor SVG Namespace">
7 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements"> 7 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom- elements">
8 <script src="../../../../resources/testharness.js"></script> 8 <script src="../../../../resources/testharness.js"></script>
9 <script src="../../../../resources/testharnessreport.js"></script> 9 <script src="../../../../resources/testharnessreport.js"></script>
10 <script src="../testcommon.js"></script> 10 <script src="../testcommon.js"></script>
11 <link rel="stylesheet" href="../../../../resources/testharness.css">
12 </head> 11 </head>
13 <body> 12 <body>
14 <div id="log"></div> 13 <div id="log"></div>
15 <script> 14 <script>
16 var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML'; 15 var MATHML_NAMESPACE = 'http://www.w3.org/1998/Math/MathML';
17 16
18 test(function() { 17 test(function() {
19 var doc = newHTMLDocument(); 18 var doc = newHTMLDocument();
20 doc.body.innerHTML = 19 doc.body.innerHTML =
21 '<math xmlns="' + MATHML_NAMESPACE + '">' + 20 '<math xmlns="' + MATHML_NAMESPACE + '">' +
(...skipping 23 matching lines...) Expand all
45 var customElement = doc.getElementById('x-math-element'); 44 var customElement = doc.getElementById('x-math-element');
46 45
47 assert_not_equals(customElement, null, 'Unregistered custom element should n ot be null'); 46 assert_not_equals(customElement, null, 'Unregistered custom element should n ot be null');
48 47
49 assert_class_string(customElement, 'Element', 48 assert_class_string(customElement, 'Element',
50 'Unresolved custom element must be a Element'); 49 'Unresolved custom element must be a Element');
51 }, 'Test interface of unresolved element in loaded HTML document with embedded M athML elements'); 50 }, 'Test interface of unresolved element in loaded HTML document with embedded M athML elements');
52 </script> 51 </script>
53 </body> 52 </body>
54 </html> 53 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698