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 itemprop attribute must be reflected by the .itemP
rop property.</p> | |
9 <div id="console"></div> | |
10 <script> | |
11 var element = createElement('div', {itemprop: 'http://example.com/foo'}); | |
12 | |
13 shouldBeDefined("element.itemProp"); | |
14 shouldBe("element.itemProp.toString()", "'http://example.com/foo'"); | |
15 | |
16 element.removeAttribute('itemProp'); | |
17 shouldBe("element.itemProp.toString()", "''"); | |
18 | |
19 </script> | |
20 <script src="../../js/resources/js-test-post.js"></script> | |
21 </body> | |
22 </html> | |
OLD | NEW |