blob: d42a83e66625aa38fa5d3166ebfae0d1bf561c0d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style>
object {
border: 1px solid black;
}
</style>
<script>
function changeURLFragment(objectElement)
{
objectElement.data = objectElement.data + "#green";
}
</script>
</head>
<body>
<!-- This test verifies that we paint the contents of an HTML object that is programmatically navigated to an anchor in the same document. This test PASSED if you see a green square. Otherwise, it FAILED. -->
<object data="resources/red-square-on-top-of-green-square.html" width="256" height="256" onload="changeURLFragment(this)"></object>
</body>
</html>