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"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
  2.  
  3. <!--
  4.  
  5. Copyright (c) 2001 World Wide Web Consortium,
  6. (Massachusetts Institute of Technology, Institut National de
  7. Recherche en Informatique et en Automatique, Keio University).  All
  8. Rights Reserved.  This program is distributed under the W3C's Software
  9. Intellectual Property License.  This program is distributed in the
  10. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE.  
  13.  
  14. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  15.  
  16. -->
  17.  
  18. <!DOCTYPE test SYSTEM "dom2.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="documentgetelementsbytagnameNS02">
  20. <metadata>
  21. <title>documentgetelementsbytagnameNS02</title>
  22. <creator>IBM</creator>
  23. <description>
  24.         The method getElementsByTagNameNS returns a NodeList of all the Elements with
  25.         a given local name and namespace URI in the order in which they are encountered
  26.         in a preorder traversal of the Document tree.
  27.        
  28.        
  29.         Create a new element having a local name="employeeId" belonging to the namespace "test"
  30.         and append it to this document.  Invoke the getElementsByTagNameNS method on a this
  31.         Document object with the values of namespaceURI=* and localName="elementId".  This
  32.         should return a nodeList of 6 item.  Check the length of the nodeList returned.
  33. </description>
  34. <contributor>Neil Delima</contributor>
  35. <date qualifier="created">2002-04-30</date>
  36. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core"/>
  37. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBTNNS"/>
  38. </metadata>
  39. <implementationAttribute name="namespaceAware" value="true"/>
  40. <var name="doc" type="Document"/>
  41. <var name="docElem" type="Element"/>
  42. <var name="element" type="Element"/>
  43. <var name="childList" type="NodeList"/>
  44. <var name="appendedChild" type="Node"/>
  45. <load var="doc" href="staffNS" willBeModified="true"/>
  46. <documentElement var="docElem" obj="doc"/>
  47. <createElementNS var="element" obj="doc" namespaceURI='"test"' qualifiedName='"employeeId"'/>
  48. <appendChild var="appendedChild" obj="docElem" newChild="element"/>
  49. <getElementsByTagNameNS var="childList" obj="doc" namespaceURI ='"*"' localName  ='"employeeId"' interface="Document"/>
  50. <assertSize size="6" collection="childList"  id="documentgetelementsbytagnameNS02"/>
  51. </test>
  52.