OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>For SVG prototype namespace is SVG namespace</title> |
| 5 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> |
| 6 <meta name="assert" content="If PROTOTYPE's interface inherits from SVGElement,
set NAMESPACE to SVG Namespace"> |
| 7 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom-
elements"> |
| 8 <script src="../../../../resources/testharness.js"></script> |
| 9 <script src="../../../../resources/testharnessreport.js"></script> |
| 10 <script src="../testcommon.js"></script> |
| 11 <link rel="stylesheet" href="../../../../resources/testharness.css"> |
| 12 </head> |
| 13 <body> |
| 14 <div id="log"></div> |
| 15 <script> |
| 16 test(function() { |
| 17 var doc = newHTMLDocument(); |
| 18 var proto = Object.create(SVGElement.prototype); |
| 19 var GeneratedConstructor = doc.registerElement('x-a', {prototype: proto, ext
ends: 'a'}); |
| 20 var customElement = new GeneratedConstructor(); |
| 21 |
| 22 assert_equals(customElement.namespaceURI, SVG_NAMESPACE, |
| 23 'Custom element namespace should be SVG namespace'); |
| 24 }, 'For SVG prototype namespace is SVG namespace'); |
| 25 </script> |
| 26 </body> |
| 27 </html> |
OLD | NEW |