| OLD | NEW |
| (Empty) |
| 1 Test to ensure that modifing properties of an item which is not attached to the
DOM tree must update its HTMLPropertiesCollection. | |
| 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 1 | |
| 8 PASS item.properties.item(0) is item.firstChild | |
| 9 PASS item.properties[0] is item.firstChild | |
| 10 | |
| 11 Add properties through itemref attribute. | |
| 12 PASS item.properties.length is 2 | |
| 13 PASS item.properties.item(0) is parent.firstChild | |
| 14 PASS item.properties[0] is parent.firstChild | |
| 15 PASS item.properties.item(1) is item.firstChild | |
| 16 PASS item.properties[1] is item.firstChild | |
| 17 | |
| 18 Add property to ref element | |
| 19 Created element of type: div | |
| 20 Set attribute: itemprop, value: qux | |
| 21 PASS item.properties.length is 3 | |
| 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.item(2) is item.firstChild | |
| 27 PASS item.properties[2] is item.firstChild | |
| 28 | |
| 29 Add properties direct to the item | |
| 30 Created element of type: div | |
| 31 Set attribute: itemprop, value: baz | |
| 32 PASS item.properties.length is 4 | |
| 33 PASS item.properties.item(3) is item.childNodes[1] | |
| 34 PASS item.properties[3] is item.childNodes[1] | |
| 35 | |
| 36 Remove property | |
| 37 PASS item.properties.length is 3 | |
| 38 PASS item.properties.item(3) is null | |
| 39 PASS item.properties[3] is undefined. | |
| 40 | |
| 41 Remove property from ref element | |
| 42 PASS item.properties.length is 2 | |
| 43 PASS item.properties.item(0) is parent.firstChild | |
| 44 PASS item.properties[0] is parent.firstChild | |
| 45 PASS item.properties.item(1) is item.firstChild | |
| 46 PASS item.properties[1] is item.firstChild | |
| 47 | |
| 48 Remove property added through itemref | |
| 49 PASS item.properties.length is 1 | |
| 50 PASS item.properties.item(0) is item.firstChild | |
| 51 PASS item.properties[0] is item.firstChild | |
| 52 PASS successfullyParsed is true | |
| 53 | |
| 54 TEST COMPLETE | |
| 55 | |
| OLD | NEW |