blob: 15556f55e8121bb39b2cf475b20d0cda0f82840d [file] [log] [blame]
commit-queue@webkit.org44da6442011-12-19 08:11:24 +00001<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2<html>
3<head>
4<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
mark.lam@apple.comb130a342013-09-07 22:48:36 +00005<script src="../../../resources/js-test-pre.js"></script>
commit-queue@webkit.org44da6442011-12-19 08:11:24 +00006</head>
7<body>
8<script>
9description("Test various valid name for elements according to the definition of DOM Level 2.")
10
11var nameList = [
12 // Invalid first Char
13 '0ascii',
14 '.Ascii',
15 '-Ascii',
16 ' ascii',
17 ' ascii',
18 '֑sc.ii',
19 '⃣scii',
20 'िascii',
21 'ʳascii',
22 // Invalid other char
23 'asc i',
24 'asc i',
25 'asciiⅦ'
26 ];
27
28for (var i in nameList)
cdumez@apple.com73c7cf92017-07-19 20:24:15 +000029 shouldThrowErrorName("document.createElement('" + nameList[i] +"')", "InvalidCharacterError");
commit-queue@webkit.org44da6442011-12-19 08:11:24 +000030</script>
mark.lam@apple.comb130a342013-09-07 22:48:36 +000031<script src="../../../resources/js-test-post.js"></script>
commit-queue@webkit.org44da6442011-12-19 08:11:24 +000032</body>
33</html>