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 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_namednodemapremovenameditem">
  15. <metadata>
  16. <title>hc_namednodemapRemoveNamedItem</title>
  17. <creator>Curt Arnold</creator>
  18. <description>
  19.    The "removeNamedItem(name)" method removes a node
  20.   specified by name.
  21.  
  22.   Retrieve the third employee and create a NamedNodeMap
  23.   object of the attributes of the last child.  Once the
  24.   list is created invoke the "removeNamedItem(name)"
  25.   method with name="class".  This should result
  26.   in the removal of the specified attribute.
  27. </description>
  28.  
  29. <date qualifier="created">2002-06-09</date>
  30. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/>
  31. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/>
  32. <!--  DOM WG opinion on default attributes -->
  33. <subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/>
  34. </metadata>
  35. <var name="doc" type="Document"/>
  36. <var name="elementList" type="NodeList"/>
  37. <var name="newAttribute" type="Attr"/>
  38. <var name="testAddress" type="Node"/>
  39. <var name="attributes" type="NamedNodeMap"/>
  40. <var name="streetAttr" type="Attr"/>
  41. <var name="specified" type="boolean"/>
  42. <var name="removedNode" type="Node"/>
  43. <load var="doc" href="hc_staff" willBeModified="true"/>
  44. <getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/>
  45. <item interface="NodeList" obj="elementList" var="testAddress" index="2"/>
  46. <attributes obj="testAddress" var="attributes"/>
  47. <removeNamedItem var="removedNode" interface="NamedNodeMap" obj="attributes" name='"class"'/>
  48. <getNamedItem obj="attributes" var="streetAttr" name='"class"'/>
  49. <assertNull actual="streetAttr" id="isnull"/>
  50. </test>
  51.