W3C home > Mailing lists > Public > www-dom-ts-submission@w3.org > May 2003

A DOM Level3 XPath test.

From: Peng Jian Xiang <citybjc@yahoo.com.tw>
Date: Sat, 24 May 2003 20:22:24 +0800
Message-ID: <3ECF6400.8000800@yahoo.com.tw>
To: www-dom-ts-submission@w3.org
Write A DOM XPath test with Mozilla.



  <script type="text/javascript">

  function Go()
  {
   if(document.implementation.hasFeature("XPath","3.0"))
   {
    var result = document.evaluate("descendant::div",document,null,0,null);
    alert(result.iterateNext());
   
   }
   else
   {
     alert("Not Support");
   }
  }

  </script>

Received on Saturday, 24 May 2003 08:36:44 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:22 UTC