OLD | NEW |
1 Test for Bugzilla bug: 90341: createAttribute/setAttributeNode does not properly
normalize case. | 1 Test for Bugzilla bug: 90341: createAttribute/setAttributeNode does not properly
normalize case. |
2 | |
3 This test verifies that the setAttributeNode() API checks for existing attribute
s case-insensitively. Thus the value of an existing attribute with the same name
but in a different case should get replaced by the new value specified via the
setAttributeNode() method. | 2 This test verifies that the setAttributeNode() API checks for existing attribute
s case-insensitively. Thus the value of an existing attribute with the same name
but in a different case should get replaced by the new value specified via the
setAttributeNode() method. |
4 | 3 |
5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
6 | 5 |
7 PASS successfullyParsed is true | 6 PASS successfullyParsed is true |
8 | 7 |
9 TEST COMPLETE | 8 TEST COMPLETE |
10 PASS test.getAttribute('style') is test.getAttribute('STYLE') | 9 PASS test.getAttribute('style') is test.getAttribute('STYLE') |
11 PASS test.getAttributeNode('style').value is test.getAttributeNode('STYLE').valu
e | 10 PASS test.getAttributeNode('style').value is test.getAttributeNode('STYLE').valu
e |
| 11 Verifying that attributes with the same name but different namespaces are treate
d as unique entities. For the following test two different attribute values shou
ld be returned. |
| 12 PASS test.getAttributeNodeNS('ns1', 'newattr').value is 'newattr1' |
| 13 PASS test.getAttributeNodeNS('ns2', 'newattr').value is 'newattr2' |
| 14 Verifying that attributes with same name but different case and having same name
spaces are treated as same. In the following test the new attribute should overw
rite the value of the existing one. |
| 15 PASS test.getAttributeNodeNS('ns1', 'newattr').value is 'newattr3' |
| 16 PASS successfullyParsed is true |
12 | 17 |
| 18 TEST COMPLETE |
| 19 |
OLD | NEW |