Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / HTMLObjectElement / vspace-hspace-as-number.html
bloba5f57cdbab42314314e627b18550bd623b6a87a6
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)
14 } else {
15 resultsDiv.innerHTML = "SUCCESS!";
17 </script>