OLD | NEW |
1 setAttributeNS tests adapted from createAttributeNS which in turn were adapted f
rom createElementNS tests attached to webkit bug 16833 | 1 setAttributeNS tests adapted from createAttributeNS which in turn were adapted f
rom createElementNS tests attached to webkit bug 16833 |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
| 6 PASS element.setAttributeNS() is undefined. |
| 7 PASS element.setAttributeNS("http://www.example.com") is undefined. |
| 8 PASS element.setAttributeNS("http://www.example.com", "foo") is undefined. |
6 PASS element.setAttributeNS(undefined, undefined, 'value') | 9 PASS element.setAttributeNS(undefined, undefined, 'value') |
7 PASS element.setAttributeNS(null, undefined, 'value') | 10 PASS element.setAttributeNS(null, undefined, 'value') |
8 FAIL element.setAttributeNS(undefined, null, 'value') | 11 FAIL element.setAttributeNS(undefined, null, 'value') |
9 FAIL element.setAttributeNS(null, null, 'value') | 12 FAIL element.setAttributeNS(null, null, 'value') |
10 PASS element.setAttributeNS(null, "", 'value'); threw INVALID_CHARACTER_ERR | 13 PASS element.setAttributeNS(null, "", 'value'); threw INVALID_CHARACTER_ERR |
11 FAIL element.setAttributeNS("", null, 'value') | 14 FAIL element.setAttributeNS("", null, 'value') |
12 PASS element.setAttributeNS("", "", 'value'); threw INVALID_CHARACTER_ERR | 15 PASS element.setAttributeNS("", "", 'value'); threw INVALID_CHARACTER_ERR |
13 PASS element.setAttributeNS(null, "<div>", 'value'); threw INVALID_CHARACTER_ERR | 16 PASS element.setAttributeNS(null, "<div>", 'value'); threw INVALID_CHARACTER_ERR |
14 PASS element.setAttributeNS(null, "0div", 'value'); threw INVALID_CHARACTER_ERR | 17 PASS element.setAttributeNS(null, "0div", 'value'); threw INVALID_CHARACTER_ERR |
15 PASS element.setAttributeNS(null, "di v", 'value'); threw INVALID_CHARACTER_ERR | 18 PASS element.setAttributeNS(null, "di v", 'value'); threw INVALID_CHARACTER_ERR |
(...skipping 26 matching lines...) Expand all Loading... |
42 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "x:test", 'value');
binding namespace namespace to wrong prefix; threw NAMESPACE_ERR | 45 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "x:test", 'value');
binding namespace namespace to wrong prefix; threw NAMESPACE_ERR |
43 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test", 'valu
e') | 46 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:test", 'valu
e') |
44 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test",
'value') | 47 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "xml:test",
'value') |
45 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test", 'v
alue') | 48 PASS element.setAttributeNS("http://www.w3.org/XML/1998/namespace", "x:test", 'v
alue') |
46 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", 'value') | 49 PASS element.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", 'value') |
47 PASS element.setAttributeNS("http://example.com/", "xmlns", 'value'); threw NAME
SPACE_ERR | 50 PASS element.setAttributeNS("http://example.com/", "xmlns", 'value'); threw NAME
SPACE_ERR |
48 PASS successfullyParsed is true | 51 PASS successfullyParsed is true |
49 | 52 |
50 TEST COMPLETE | 53 TEST COMPLETE |
51 | 54 |
OLD | NEW |