OLD | NEW |
1 This tests moving a node with labels property from one document to another. The
labels node list should be updated when labels are modified in the new document. | 1 This tests moving a node with labels property from one document to another. The
labels node list should be updated when labels are modified in the new document. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 The input element initially have two label elements #label1 and #label2. | 6 The input element initially have two label elements #label1 and #label2. |
7 PASS labels = input.labels; labels.length is 2 | 7 PASS labels = input.labels; labels.length is 2 |
8 PASS label0 = labels[0]; label1 = labels[1]; iframe.contentDocument.body.appendC
hild(form); labels.length; label1.parentNode.removeChild(label1); labels.length
is 1 | 8 PASS label0 = labels[0]; label1 = labels[1]; iframe.contentDocument.body.appendC
hild(form); labels.length; label1.parentNode.removeChild(label1); labels.length
is 1 |
9 PASS labels[0] is label0 | 9 PASS labels[0] is label0 |
10 PASS label0.parentNode.appendChild(label1); labels.length is 2 | 10 PASS label0.parentNode.appendChild(label1); labels.length is 2 |
11 PASS labels[0] is label0 | 11 PASS labels[0] is label0 |
12 PASS labels[1] is label1 | 12 PASS labels[1] is label1 |
13 | 13 |
OLD | NEW |