| OLD | NEW | 
| (Empty) |  | 
 |   1 <!DOCTYPE html> | 
 |   2 <html> | 
 |   3 <head> | 
 |   4 <title>If namespace is SVG namespace and name is null then error must be thrown<
    /title> | 
 |   5 <meta name="author" title="Vasiliy Degtyarev" href="mailto:vasya@unipro.ru"> | 
 |   6 <meta name="author" title="Sergey G. Grekhov" href="mailto:sgrekhov@unipro.ru"> | 
 |   7 <meta name="assert" content="If namespace is SVG namespace and name is null then
     error must be thrown"> | 
 |   8 <link rel="help" href="http://www.w3.org/TR/custom-elements/#registering-custom-
    elements"> | 
 |   9 <script src="../../../../resources/testharness.js"></script> | 
 |  10 <script src="../../../../resources/testharnessreport.js"></script> | 
 |  11 <script src="../testcommon.js"></script> | 
 |  12 <link rel="stylesheet" href="../../../../resources/testharness.css"> | 
 |  13 </head> | 
 |  14 <body> | 
 |  15 <div id="log"></div> | 
 |  16 <script> | 
 |  17 test(function() { | 
 |  18     var doc = newHTMLDocument(); | 
 |  19     var proto = Object.create(SVGElement.prototype); | 
 |  20     assert_throws('NotSupportedError', function() { | 
 |  21         doc.registerElement('x-svg-a', {prototype: proto}); | 
 |  22     }, 'Exception should be thrown in case of attempt to register ' + | 
 |  23         'a custom element with SVG namespace and name is not specified'); | 
 |  24 }, 'Error should be thrown if namespace is SVG and local name is not specified')
    ; | 
 |  25  | 
 |  26  | 
 |  27 test(function() { | 
 |  28     var doc = newHTMLDocument(); | 
 |  29     var proto = Object.create(SVGElement.prototype); | 
 |  30     assert_throws('NotSupportedError', function() { | 
 |  31         doc.registerElement('x-svg-b', {prototype: proto, extends: null}); | 
 |  32     }, 'Exception should be thrown in case of attempt to register ' + | 
 |  33         'a custom element with SVG namespace and name is null'); | 
 |  34 }, 'Error should be thrown if namespace is SVG and local name is null'); | 
 |  35 </script> | 
 |  36 </body> | 
 |  37 </html> | 
| OLD | NEW |