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. Copyright (c) 2001-2004 World Wide Web Consortium,
  5. (Massachusetts Institute of Technology, Institut National de
  6. Recherche en Informatique et en Automatique, Keio University).  All
  7. Rights Reserved.  This program is distributed under the W3C's Software
  8. Intellectual Property License.  This program is distributed in the
  9. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE.  
  12.  
  13. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  14.  
  15. -->
  16. <!DOCTYPE test SYSTEM "dom3.dtd">
  17. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="textreplacewholetext08">
  18. <metadata>
  19. <title>textreplacewholetext08</title>
  20. <creator>Curt Arnold</creator>
  21. <description>
  22. Appends an entity reference containing text and an element to an existing
  23. text node, then calls Text.replaceWholeText on the existing text node.
  24. A NO_MODIFICATION_ALLOWED_ERR should be thrown.
  25. </description>
  26. <date qualifier="created">2003-12-18</date>
  27. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Text3-replaceWholeText"/>
  28. <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=425"/>
  29. <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=540"/>
  30. </metadata>
  31. <var name="doc" type="Document"/>
  32. <var name="itemList" type="NodeList"/>
  33. <var name="p" type="Element"/>
  34. <var name="entRef" type="EntityReference"/>
  35. <var name="node" type="Node"/>
  36. <load var="doc" href="barfoo" willBeModified="true"/>
  37. <getElementsByTagName var="itemList" obj="doc" tagname='"p"' interface="Document"/>
  38. <item var="p" obj="itemList" index="0" interface="NodeList"/>
  39. <createEntityReference var="entRef" obj="doc" name='"ent2"'/>
  40. <appendChild obj="p" var="node" newChild="entRef"/>
  41. <firstChild var="node" obj="p" interface="Node"/>
  42. <assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR">
  43.         <NO_MODIFICATION_ALLOWED_ERR>
  44.                 <replaceWholeText obj="node" var="node" content='"yo"'/>
  45.         </NO_MODIFICATION_ALLOWED_ERR>
  46. </assertDOMException>
  47. </test>
  48.