| OLD | NEW |
| (Empty) |
| 1 Microdata properties collection must update on adding or removing property. | |
| 2 | |
| 3 Created element of type: div | |
| 4 Set attribute: itemscope, value: itemscope | |
| 5 PASS element.properties.length == '1' is true | |
| 6 PASS element.properties.item(0) == element.firstChild is true | |
| 7 PASS element.properties[0] == element.firstChild is true | |
| 8 | |
| 9 Append a property with itemprop: bar. | |
| 10 Created element of type: div | |
| 11 Set attribute: itemprop, value: bar | |
| 12 PASS element.properties.length == '2' is true | |
| 13 PASS element.properties.item(1) == element.childNodes[1] is true | |
| 14 PASS element.properties[1] == element.childNodes[1] is true | |
| 15 | |
| 16 Append a property with itemprop: foo. | |
| 17 Created element of type: div | |
| 18 Set attribute: itemprop, value: foo | |
| 19 PASS element.properties.length == '3' is true | |
| 20 PASS element.properties.item(2) == element.childNodes[1].firstChild is true | |
| 21 PASS element.properties[2] == element.childNodes[1].firstChild is true | |
| 22 | |
| 23 Remove property with itemprop: foo. | |
| 24 PASS element.properties.length == '2' is true | |
| 25 PASS element.properties.item(2) == undefined is true | |
| 26 PASS element.properties[2] == undefined is true | |
| 27 PASS successfullyParsed is true | |
| 28 | |
| 29 TEST COMPLETE | |
| 30 | |
| OLD | NEW |