blob: a5f57cdbab42314314e627b18550bd623b6a87a6 [file] [log] [blame]
<p>This test makes sure that HTMLObjectElement.vspace and HTMLObjectElement.hspace are exposed as numbers instead of strings, per the DOM Level 2 HTML spec: http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-9893177</p>
<object id="object" data="" vspace="10" hspace="20"></object>
<div id="results">FAILURE</div>
<script type="text/javascript">
var object = document.getElementById("object");
var resultsDiv = document.getElementById("results");
if (typeof(object.vspace) != "number") {
resultsDiv.innerHTML += "FAILURE HTMLObjectElement.vspace is not a number, rather: " + typeof(object.vspace)
} else if (typeof(object.hspace) != "number") {
resultsDiv.innerHTML += "FAILURE HTMLObjectElement.hspace is not a number, rather: " + typeof(object.hspace)
} else {
resultsDiv.innerHTML = "SUCCESS!";
}
</script>