<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml"><head>
  <title>DOM Core: getElementById and known namespaces</title>
  <script type="text/javascript">
    function doTest1() {
      document.documentElement.childNodes[1].childNodes[0].setAttributeNS('', 'title', document.getElementById('test') ? 1 : 0);
    }
  </script>
  <style type="text/css">
    p:after { content: "Not Tested"; content: "Result (green = passed; red = failed; black = untested)"; }
    p[title]:after { content: "Failed"; color: red; }
    p[title="1"]:after { content: "Passed"; color: green; }
  </style>
 </head><body onload="doTest1()"><p>Test: </p><div id="test"></div></body>
 <!-- the silly wrapping is to avoid whitespace text nodes -->
</html>
