blob: b0c79db5527b7c5ea3f27bfe434a45729885269f [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../js/resources/js-test-pre.js"></script>
<script src="resources/microdata-common.js"></script>
</head>
<body>
<p>This test ensures that itemValue must reflect the data attribute on object element.</p>
<div id="console"></div>
<script>
var objectElement = createElement('object', {itemprop: 'foo', data: 'http://example.org/'});
shouldBe('objectElement.itemValue', "'http://example.org/'");
objectElement.data = 'http://example.net/';
shouldBe('objectElement.itemValue', "'http://example.net/'");
objectElement.itemValue = 'http://example.com/';
shouldBe('objectElement.data', "'http://example.com/'");
</script>
<script src="../../js/resources/js-test-post.js"></script>
</body>
</html