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-2004 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="getElementsByTagNameNS08">
  20. <metadata>
  21. <title>getElementsByTagNameNS08</title>
  22. <creator>Curt Arnold</creator>
  23. <description>
  24.     Element.getElementsByTagNameNS('*','*') should return all child
  25.     elements.  There is some contention on whether this should match
  26.     unqualified elements, this test reflects the interpretation that
  27.     '*' should match elements in all namespaces and unqualified elements.
  28.  
  29.     Derived from getElementsByTagNameNS01 which tests similar functionality
  30.     on the Document interface.
  31. </description>
  32. <date qualifier="created">2001-02-28</date>
  33. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-1938918D"/>
  34. </metadata>
  35. <var name="doc" type="Document"/>
  36. <var name="docElem" type="Element"/>
  37. <var name="newList" type="NodeList"/>
  38. <load var="doc" href="staffNS" willBeModified="false"/>
  39. <documentElement var="docElem" obj="doc"/>
  40. <getElementsByTagNameNS interface="Element" obj="docElem" var="newList" namespaceURI='"*"' localName='"*"'/>
  41. <if><contentType type="image/svg+xml"/>
  42. <assertSize collection="newList" size="38" id="listSize_svg"/>
  43. <else>
  44. <assertSize collection="newList" size="36" id="listSize"/>
  45. </else>
  46. </if>
  47. </test>
  48.