<!DOCTYPE html>
<html class="reftest-wait">
  <!-- Test: the output element should show its value -->
  <script type="text/javascript">
    function setDefaultValue()
    {
      document.getElementById('o').value = "bar";
    }
    function setValue()
    {
      document.getElementById('o').value = "foo";
    }
    function disableReftestWait()
    {
      document.documentElement.className = '';
    }
  </script>

  <body onload="setDefaultValue(); setValue(); disableReftestWait();">
    <output id="o"></output>
  </body>
</html>