1 <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>
3 <object id=
"object" data=
"" vspace=
"10" hspace=
"20"></object>
5 <div id=
"results">FAILURE
</div>
7 <script type=
"text/javascript">
8 var object
= document
.getElementById("object");
9 var resultsDiv
= document
.getElementById("results");
10 if (typeof(object
.vspace
) != "number") {
11 resultsDiv
.innerHTML
+= "FAILURE HTMLObjectElement.vspace is not a number, rather: " + typeof(object
.vspace
)
12 } else if (typeof(object
.hspace
) != "number") {
13 resultsDiv
.innerHTML
+= "FAILURE HTMLObjectElement.hspace is not a number, rather: " + typeof(object
.hspace
)
15 resultsDiv
.innerHTML
= "SUCCESS!";