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. <!--
  3. Copyright (c) 2001-2004 World Wide Web Consortium,
  4. (Massachusetts Institute of Technology, Institut National de
  5. Recherche en Informatique et en Automatique, Keio University). All
  6. Rights Reserved. This program is distributed under the W3C's Software
  7. Intellectual Property License. This program is distributed in the
  8. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  9. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  10. PURPOSE.
  11. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  12. --><!DOCTYPE test SYSTEM "dom1.dtd">
  13.  
  14. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrname">
  15. <metadata>
  16. <title>hc_attrName</title>
  17. <creator>Curt Arnold</creator>
  18. <description>
  19.  Retrieve the attribute named class from the last
  20.  child of of the second "p" element and examine its
  21.  NodeName.
  22. </description>
  23.  
  24. <date qualifier="created">2002-06-09</date>
  25. <!--   Node.nodeName  -->
  26. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/>
  27. <!--   Attr.name      -->
  28. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1112119403"/>
  29. <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/>
  30. <subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/>
  31. </metadata>
  32. <var name="doc" type="Document"/>
  33. <var name="addressList" type="NodeList"/>
  34. <var name="testNode" type="Node"/>
  35. <var name="attributes" type="NamedNodeMap"/>
  36. <var name="streetAttr" type="Attr"/>
  37. <var name="strong1" type="DOMString"/>
  38. <var name="strong2" type="DOMString"/>
  39. <load var="doc" href="hc_staff" willBeModified="false"/>
  40. <getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/>
  41. <item interface="NodeList" obj="addressList" var="testNode" index="1"/>
  42. <attributes obj="testNode" var="attributes"/>
  43. <getNamedItem obj="attributes" var="streetAttr" name='"class"'/>
  44. <nodeName obj="streetAttr" var="strong1"/>
  45. <name obj="streetAttr" var="strong2" interface="Attr"/>
  46. <assertEquals actual="strong1" expected='"class"' id="nodeName" ignoreCase="auto" context="attribute"/>
  47. <assertEquals actual="strong2" expected='"class"' id="name" ignoreCase="auto" context="attribute"/>
  48. </test>
  49.