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. 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.  
  12. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  13. -->
  14. <!DOCTYPE test SYSTEM "dom2.dtd">
  15. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="attrgetownerelement04">
  16. <metadata>
  17. <title>attrgetownerelement04</title>
  18. <creator>IBM</creator>
  19. <description>
  20.   The "getOwnerElement()" will return the Element node this attribute is attached to or
  21.   null if this attribute is not in use.  
  22.   Import an attribute node to another document.  If an Attr node is imported, its
  23.   ownerElement attribute should be set to null.  Verify if the ownerElement has been set
  24.   to null.
  25. </description>
  26. <contributor>Neil Delima</contributor>
  27. <date qualifier="created">2002-04-28</date>
  28. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#Attr-ownerElement"/>
  29. </metadata>
  30. <implementationAttribute name="namespaceAware" value="true"/>
  31. <var name="doc" type="Document"/>
  32. <var name="docImp" type="Document"/>
  33. <var name="ownerElement" type="Node"/>
  34. <var name="element" type="Element"/>
  35. <var name="attr" type="Attr"/>
  36. <var name="attrImp" type="Attr"/>
  37. <var name="addresses" type="NodeList"/>
  38. <load var="doc" href="staffNS" willBeModified="false"/>
  39. <load var="docImp" href="staff" willBeModified="false"/>
  40. <getElementsByTagNameNS var="addresses" obj="doc" interface="Document" namespaceURI='"http://www.nist.gov"' localName='"address"'/>
  41. <item var="element" obj="addresses" interface="NodeList" index="1"/>
  42. <assertNotNull actual="element" id="empAddressNotNull"/>
  43. <getAttributeNodeNS var="attr" obj="element" namespaceURI='"http://www.nist.gov"' localName='"zone"'/>
  44. <importNode var="attrImp" obj="docImp" importedNode="attr" deep="true"/>
  45. <ownerElement var="ownerElement" obj="attrImp"/>
  46. <assertNull actual="ownerElement" id="attrgetownerelement04"/>
  47. </test>
  48.