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-2004 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="documentimportnode07">
  20. <metadata>
  21. <title>documentimportnode07</title>
  22. <creator>IBM</creator>
  23. <description>
  24.         The importNode method imports a node from another document to this document.
  25.         A NOT_SUPPORTED_ERR is raised if the type of node being imported is
  26.         not supported
  27.        
  28.         Using the method importNode with deep=true, try to import this Document's
  29.         DocumentType object. Since DocumentType nodes cannot be imported, a
  30.         NOT_SUPPORTED_ERR should be raised.
  31. </description>
  32. <contributor>Neil Delima</contributor>
  33. <date qualifier="created">2002-04-30</date>
  34. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core"/>
  35. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#Core-Document-importNode"/>
  36. </metadata>
  37. <implementationAttribute name="namespaceAware" value="true"/>
  38. <var name="doc" type="Document"/>
  39. <var name="imported" type="Node"/>
  40. <var name="docType" type="DocumentType"/>
  41. <load var="doc" href="staffNS" willBeModified="true"/>
  42. <doctype var="docType" obj="doc"/>
  43. <assertDOMException id="throw_NOT_SUPPORTED_ERR">
  44. <NOT_SUPPORTED_ERR>
  45. <importNode var="imported" obj="doc" importedNode="docType" deep="true"/>
  46. </NOT_SUPPORTED_ERR>
  47. </assertDOMException>
  48. </test>
  49.