OLD | NEW |
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 Loading... |
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> |
OLD | NEW |