<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>DOM Core: getAttributeNodeNS()</title>
  <script type="text/javascript">
    function doTest1() {
      document.getElementById('result1').setAttributeNS('', 'title', 
        document.getElementById('test').getAttributeNodeNS('http://www.example.org/test', 'attribute').value);
    }
  </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="pass"]:after { content: "Passed"; color: green; }
  </style>
 </head>
 <body onload="doTest1()">
  <div xmlns:test="http://www.example.org/test" id="test" test:attribute="pass"></div>
  <p id="result1">Test #1: </p>
 </body>
</html>
