| <script src="../../js/resources/js-test-pre.js"></script> |
| <script src="resources/microdata-common.js"></script> |
| <p>This test ensures that itemValue must reflect the href attribute if the element is an a, area, or link element.</p> |
| function runTest(tagName) |
| debug("Testing '" + tagName + "' element's behavior."); |
| testElement = createElement(tagName, {itemprop: 'foo', href: 'http://example.org/'}); |
| shouldBe("testElement.itemValue", "'http://example.org/'"); |
| testElement.href = 'http://example.net/'; |
| shouldBe("testElement.itemValue", "'http://example.net/'"); |
| testElement.itemValue = 'http://example.com/'; |
| shouldBe("testElement.href", "'http://example.com/'"); |
| <script src="../../js/resources/js-test-post.js"></script> |