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) 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 "dom3.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="discarddefaultcontent02">
  20. <metadata>
  21. <title>discarddefaultcontent02</title>
  22. <creator>Curt Arnold</creator>
  23. <description>
  24. Default attributes should be explicitly serialized if discard-default-content is false.
  25. </description>
  26. <date qualifier="created">2004-04-01</date>
  27. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save#LS-LSSerializer-writeToString"/>
  28. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-LS-20040407/load-save#parameter-discard-default-content"/>
  29. </metadata>
  30. <var name="doc" type="Document"/>
  31. <var name="domConfig" type="DOMConfiguration"/>
  32. <var name="domImplLS" type="DOMImplementationLS"/>
  33. <var name="lsSerializer" type="LSSerializer"/>
  34. <var name="docType" type="DocumentType" isNull="true"/>
  35. <var name="docElem" type="Element"/>
  36. <var name="newNode" type="Node"/>
  37. <var name="output" type="DOMString"/>
  38. <var name="retNode" type="Node"/>
  39. <var name="canSet" type="boolean"/>
  40. <implementation var="domImplLS"/>
  41. <createLSSerializer var="lsSerializer" obj="domImplLS"/>
  42. <load var="doc" href="hc_staff" willBeModified="true"/>
  43. <domConfig obj="lsSerializer" var="domConfig" interface="LSSerializer"/>
  44. <setParameter obj="domConfig" name='"discard-default-content"' value="false"/>
  45. <writeToString var="output" obj="lsSerializer" nodeArg="doc"/>
  46. <!-- explicit dir='rtl' should appear in serialized document   -->
  47. <assertTrue id="hasDirAttr"><contains obj="output" str='"dir="' interface="DOMString"/></assertTrue>
  48. </test>
  49.