commit-queue@webkit.org | 44da644 | 2011-12-19 08:11:24 +0000 | [diff] [blame] | 1 | <!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.com | b130a34 | 2013-09-07 22:48:36 +0000 | [diff] [blame] | 5 | <script src="../../../resources/js-test-pre.js"></script> |
commit-queue@webkit.org | 44da644 | 2011-12-19 08:11:24 +0000 | [diff] [blame] | 6 | </head> |
| 7 | <body> |
| 8 | <script> |
| 9 | description("Test various valid name for elements according to the definition of DOM Level 2.") |
| 10 | |
| 11 | var 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 | |
| 28 | for (var i in nameList) |
cdumez@apple.com | 73c7cf9 | 2017-07-19 20:24:15 +0000 | [diff] [blame] | 29 | shouldThrowErrorName("document.createElement('" + nameList[i] +"')", "InvalidCharacterError"); |
commit-queue@webkit.org | 44da644 | 2011-12-19 08:11:24 +0000 | [diff] [blame] | 30 | </script> |
mark.lam@apple.com | b130a34 | 2013-09-07 22:48:36 +0000 | [diff] [blame] | 31 | <script src="../../../resources/js-test-post.js"></script> |
commit-queue@webkit.org | 44da644 | 2011-12-19 08:11:24 +0000 | [diff] [blame] | 32 | </body> |
| 33 | </html> |