OLD | NEW |
| (Empty) |
1 <html> | |
2 <head> | |
3 <script src="../../js/resources/js-test-pre.js"></script> | |
4 <script src="resources/microdata-common.js"></script> | |
5 </head> | |
6 <body> | |
7 <script> | |
8 description("Test to verify that itemprop names must not override builtin proper
ties."); | |
9 | |
10 var element = createElement('div', {itemscope: 'itemscope'}); | |
11 | |
12 var namedItem = element.properties.namedItem; | |
13 var item = element.properties.item; | |
14 element.innerHTML = '<div itemprop="namedItem item"></div>'; | |
15 | |
16 shouldBe("element.properties['namedItem']", "namedItem"); | |
17 shouldBe("element.properties['item']", "item"); | |
18 | |
19 </script> | |
20 <script src="../../js/resources/js-test-post.js"></script> | |
21 </body> | |
22 </html> | |
OLD | NEW |