2 <script src=
"../../../resources/testharness.js"></script>
3 <script src=
"../../../resources/testharnessreport.js"></script>
7 var proto
= Object
.create(SVGGElement
.prototype);
9 assert_throws('NOT_SUPPORTED_ERR', function() {
10 document
.registerElement('x-foo', {prototype: proto
});
11 }, 'register of an SVG element requires the extends parameter');
13 var XFoo
= document
.registerElement('x-foo', {prototype: proto
, extends: 'g'});
15 var created
= new XFoo();
16 assert_true(created
instanceof SVGGElement
, 'created element should be an SVG element');
18 }, 'registration of SVG types');