OLD | NEW |
1 This test checks whether attribute names with uppercase work properly in HTML do
cuments. | 1 This test checks whether attribute names with uppercase work properly in HTML do
cuments. |
2 | 2 |
3 Add an attribute: | 3 Add an attribute: |
4 | 4 |
5 setAttribute(attr_name) | 5 setAttribute(attr_name) |
6 | 6 |
7 The following should be non-empty, true, or non-null. | 7 The following should be non-empty, true, or non-null. |
8 | 8 |
9 getAttribute(attr_name) = attr_value | 9 getAttribute(attr_name) = attr_value |
10 hasAttribute(attr_name) = true | 10 hasAttribute(attr_name) = true |
11 getAttributeNode(attr_name) = [object Attr] | 11 getAttributeNode(attr_name) = [object Attr] |
12 attributes.getNamedItem(attr_name) = [object Attr] | 12 attributes.getNamedItem(attr_name) = [object Attr] |
13 | 13 |
14 getAttributeNS(attr_name) = attr_value | 14 getAttributeNS(attr_name) = attr_value |
15 hasAttributeNS(attr_name) = true | 15 hasAttributeNS(attr_name) = true |
16 getAttributeNodeNS(attr_name) = [object Attr] | 16 getAttributeNodeNS(attr_name) = [object Attr] |
17 attributes.getNamedItemNS(attr_name) = [object Attr] | 17 attributes.getNamedItemNS(attr_name) = [object Attr] |
18 | 18 |
19 getAttribute(ATTR_NAME) = attr_value | 19 getAttribute(ATTR_NAME) = attr_value |
20 hasAttribute(ATTR_NAME) = true | 20 hasAttribute(ATTR_NAME) = true |
21 getAttributeNode(ATTR_NAME) = [object Attr] | 21 getAttributeNode(ATTR_NAME) = [object Attr] |
22 attributes.getNamedItem(ATTR_NAME) = [object Attr] | 22 attributes.getNamedItem(ATTR_NAME) = [object Attr] |
23 | 23 |
24 The following should be empty, false, or null. | 24 The following should be empty, false, or null. |
25 | 25 |
26 getAttributeNS(ATTR_NAME) = | 26 getAttributeNS(ATTR_NAME) = null |
27 hasAttributeNS(ATTR_NAME) = false | 27 hasAttributeNS(ATTR_NAME) = false |
28 getAttributeNodeNS(ATTR_NAME) = null | 28 getAttributeNodeNS(ATTR_NAME) = null |
29 attributes.getNamedItemNS(ATTR_NAME) = null | 29 attributes.getNamedItemNS(ATTR_NAME) = null |
30 | 30 |
31 The following should successfully remove the attribute. | 31 The following should successfully remove the attribute. |
32 | 32 |
33 setAttribute(attr_name); removeAttribute(attr_name) | 33 setAttribute(attr_name); removeAttribute(attr_name) |
34 hasAttribute(attr_name) = false | 34 hasAttribute(attr_name) = false |
35 setAttribute(attr_name); removeAttributeNS(attr_name) | 35 setAttribute(attr_name); removeAttributeNS(attr_name) |
36 hasAttribute(attr_name) = false | 36 hasAttribute(attr_name) = false |
(...skipping 20 matching lines...) Expand all Loading... |
57 The following should set a lowercase attribute, so the result should be true. | 57 The following should set a lowercase attribute, so the result should be true. |
58 | 58 |
59 setAttributeNS(attr_name) | 59 setAttributeNS(attr_name) |
60 hasAttribute(attr_name) = true | 60 hasAttribute(attr_name) = true |
61 | 61 |
62 The following should set an uppercase attribute, so the result should be false. | 62 The following should set an uppercase attribute, so the result should be false. |
63 | 63 |
64 setAttributeNS(ATTR_NAME) | 64 setAttributeNS(ATTR_NAME) |
65 hasAttribute(attr_name) = false | 65 hasAttribute(attr_name) = false |
66 | 66 |
OLD | NEW |