OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <script src="../../js/resources/js-test-pre.js"></script> | |
5 <script src="resources/microdata-common.js"></script> | |
6 </head> | |
7 <body> | |
8 <p>This test ensures that the itemref attribute must be reflected by the .itemRe
f property.</p> | |
9 <div id="console"></div> | |
10 <script> | |
11 var element = createElement('div', {itemref: 'foo bar'}); | |
12 shouldBeDefined("element.itemRef"); | |
13 | |
14 shouldBeTrue("element.itemRef.length == 2"); | |
15 shouldBeTrue("element.itemRef.toString() == 'foo bar'"); | |
16 | |
17 element.removeAttribute('itemref'); | |
18 shouldBeTrue("element.itemRef.toString() == ''"); | |
19 | |
20 </script> | |
21 <script src="../../js/resources/js-test-post.js"></script> | |
22 </body> | |
23 </html> | |
OLD | NEW |