<select id="target">
    <option>FAIL</option>
</select>
<p id="result">
    FAIL: Test did not run
</p>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    var target = document.getElementById("target");
    target.appendChild(document.createElement("link"));
    target.offsetTop;

    target.innerHTML = "<option>PASS</option>";

    document.getElementById("result").innerHTML = target.value;
</script>
