4 <title>If TYPE is an invalid custom element type, throw SyntaxError</title>
5 <meta name="author" title="Aleksei Yu. Semenov" href="mailto:a.semenov@unipro.ru">
6 <meta name="assert" content="If TYPE is an invalid custom element type, set ERROR to InvalidType and stop.">
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">
17 var doc = newHTMLDocument();
18 assert_throws('SyntaxError', function() { doc.registerElement('1xa2'); },
19 'Registering invalid custom element type should throw SyntaxError');
20 }, 'Registering invalid custom element type should throw SyntaxError');