Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
  3.  
  4. <!--
  5.  
  6. Copyright (c) 2001 World Wide Web Consortium,
  7. (Massachusetts Institute of Technology, Institut National de
  8. Recherche en Informatique et en Automatique, Keio University).  All
  9. Rights Reserved.  This program is distributed under the W3C's Software
  10. Intellectual Property License.  This program is distributed in the
  11. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  12. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  13. PURPOSE.  
  14.  
  15. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  16.  
  17. -->
  18. <!DOCTYPE test SYSTEM "dom2.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="getElementsByTagNameNS14">
  20. <metadata>
  21. <title>getElementsByTagNameNS14</title>
  22. <creator>Curt Arnold</creator>
  23. <description>
  24.     The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList
  25.    of all descendant Elements with a given local name and namespace URI in the
  26.    order in which they are encountered in a preorder traversal of this Element tree.
  27.    
  28.    Create a NodeList of all the descendant elements
  29.    using the string "http://www.nist.gov" as the namespaceURI and "address" as the
  30.    localName.
  31.    The method should return a NodeList whose length is
  32.    "3".  
  33. </description>
  34. <date qualifier="created">2002-02-28</date>
  35. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D"/>
  36. </metadata>
  37. <implementationAttribute name="namespaceAware" value="true"/>
  38. <var name="doc" type="Document"/>
  39. <var name="docElem" type="Element"/>
  40. <var name="elementList" type="NodeList"/>
  41. <load var="doc" href="staffNS" willBeModified="false"/>
  42. <documentElement var="docElem" obj="doc"/>
  43. <getElementsByTagNameNS interface="Element" obj="docElem" namespaceURI='"http://www.nist.gov"' localName='"address"' var="elementList"/>
  44. <assertSize collection="elementList" size="3" id="addresses"/>
  45. </test>
  46.