| OLD | NEW |
| (Empty) |
| 1 Test to verify HTMLPropertiesCollection and PropertyNodeList interfaces behavior
on changing id attribute. | |
| 2 | |
| 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | |
| 4 | |
| 5 | |
| 6 Created element of type: div | |
| 7 PASS item.properties.length is 0 | |
| 8 PASS item.properties.item(0) is null | |
| 9 PASS item.properties[0] is undefined. | |
| 10 PASS item.properties.namedItem('foo').length is 0 | |
| 11 PASS item.properties.namedItem('foo').item(0) is null | |
| 12 PASS item.properties.namedItem('foo')[0] is undefined. | |
| 13 PASS item.properties.namedItem('bar').length is 0 | |
| 14 PASS item.properties.namedItem('bar').item(0) is null | |
| 15 PASS item.properties.namedItem('bar')[0] is undefined. | |
| 16 PASS item.properties.names.length is 0 | |
| 17 PASS item.properties.names.item(0) is null | |
| 18 PASS item.properties.names[0] is undefined. | |
| 19 | |
| 20 Set parent.firstChild.id to 'id1' | |
| 21 PASS item.properties.length is 2 | |
| 22 PASS item.properties.item(0) is parent.firstChild | |
| 23 PASS item.properties[0] is parent.firstChild | |
| 24 PASS item.properties.item(1) is parent.firstChild.firstChild | |
| 25 PASS item.properties[1] is parent.firstChild.firstChild | |
| 26 PASS item.properties.namedItem('foo').length is 1 | |
| 27 PASS item.properties.namedItem('foo').item(0) is parent.firstChild | |
| 28 PASS item.properties.namedItem('foo')[0] is parent.firstChild | |
| 29 PASS item.properties.namedItem('bar').length is 1 | |
| 30 PASS item.properties.namedItem('bar').item(0) is parent.firstChild.firstChild | |
| 31 PASS item.properties.namedItem('bar')[0] is parent.firstChild.firstChild | |
| 32 PASS item.properties.names.length is 2 | |
| 33 PASS item.properties.names.item(0) is 'foo' | |
| 34 PASS item.properties.names[0] is 'foo' | |
| 35 PASS item.properties.names.item(1) is 'bar' | |
| 36 PASS item.properties.names[1] is 'bar' | |
| 37 | |
| 38 Remove id attribute from parent.firstChild | |
| 39 PASS item.properties.length is 0 | |
| 40 PASS item.properties.item(0) is null | |
| 41 PASS item.properties[0] is undefined. | |
| 42 PASS item.properties.namedItem('foo').length is 0 | |
| 43 PASS item.properties.namedItem('foo').item(0) is null | |
| 44 PASS item.properties.namedItem('foo')[0] is undefined. | |
| 45 PASS item.properties.namedItem('bar').length is 0 | |
| 46 PASS item.properties.namedItem('bar').item(0) is null | |
| 47 PASS item.properties.namedItem('bar')[0] is undefined. | |
| 48 PASS item.properties.names.length is 0 | |
| 49 PASS item.properties.names.item(0) is null | |
| 50 PASS item.properties.names[0] is undefined. | |
| 51 PASS successfullyParsed is true | |
| 52 | |
| 53 TEST COMPLETE | |
| 54 | |
| OLD | NEW |