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 itemValue must reflect the data attribute on object el
ement.</p> | |
9 <div id="console"></div> | |
10 <script> | |
11 var objectElement = createElement('object', {itemprop: 'foo', data: 'http://exam
ple.org/'}); | |
12 shouldBe('objectElement.itemValue', "'http://example.org/'"); | |
13 objectElement.data = 'http://example.net/'; | |
14 shouldBe('objectElement.itemValue', "'http://example.net/'"); | |
15 objectElement.itemValue = 'http://example.com/'; | |
16 shouldBe('objectElement.data', "'http://example.com/'"); | |
17 | |
18 </script> | |
19 <script src="../../js/resources/js-test-post.js"></script> | |
20 </body> | |
21 </html | |
OLD | NEW |