| 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 tests that itemValue must be null if the element does not have an itempr
op attribute</p> | |
| 9 <div id="console"></div> | |
| 10 <script> | |
| 11 shouldBeTrue("createElement('meta', {content: 'test'}).itemValue == null"); | |
| 12 debug(''); | |
| 13 shouldBeTrue("createElement('audio', {src: 'test'}).itemValue == null"); | |
| 14 debug(''); | |
| 15 shouldBeTrue("createElement('embed', {src: 'test'}).itemValue == null"); | |
| 16 debug(''); | |
| 17 shouldBeTrue("createElement('iframe', {src: 'test'}).itemValue == null"); | |
| 18 debug(''); | |
| 19 shouldBeTrue("createElement('img', {src: 'test'}).itemValue == null"); | |
| 20 debug(''); | |
| 21 shouldBeTrue("createElement('source', {src: 'test'}).itemValue == null"); | |
| 22 debug(''); | |
| 23 shouldBeTrue("createElement('track', {src: 'test'}).itemValue == null"); | |
| 24 debug(''); | |
| 25 shouldBeTrue("createElement('video', {src: 'test'}).itemValue == null"); | |
| 26 debug(''); | |
| 27 shouldBeTrue("createElement('a', {href: 'test'}).itemValue == null"); | |
| 28 debug(''); | |
| 29 shouldBeTrue("createElement('area', {href: 'test'}).itemValue == null"); | |
| 30 debug(''); | |
| 31 shouldBeTrue("createElement('link', {href: 'test'}).itemValue == null"); | |
| 32 debug(''); | |
| 33 shouldBeTrue("createElement('object', {data: 'test'}).itemValue == null"); | |
| 34 debug(''); | |
| 35 shouldBeTrue("createElement('time', {}).itemValue == null"); | |
| 36 debug(''); | |
| 37 shouldBeTrue("createElement('time', {datetime: 'test'}).itemValue == null"); | |
| 38 debug(''); | |
| 39 shouldBeTrue("createElement('div', {}, 'test').itemValue == null"); | |
| 40 debug(''); | |
| 41 shouldBeTrue("createElement('madeuponthespot', {}, 'test').itemValue == null"); | |
| 42 | |
| 43 </script> | |
| 44 <script src="../../js/resources/js-test-post.js"></script> | |
| 45 </body> | |
| 46 </html | |
| OLD | NEW |