<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>4291</bug_id>
          
          <creation_ts>2005-08-05 00:48:37 -0700</creation_ts>
          <short_desc>dumpAsText doesn&apos;t work with XHTML documents</short_desc>
          <delta_ts>2005-09-14 22:15:39 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>420+</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Anders Carlsson">andersca</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>15961</commentid>
    <comment_count>0</comment_count>
    <who name="Anders Carlsson">andersca</who>
    <bug_when>2005-08-05 00:48:37 -0700</bug_when>
    <thetext>When using dumpAsText with xhtml documents, the result is &quot;error&quot; instead of the textual 
representation of the document. This is because of the following code in dump():

if (dumpAsText) {
    DOMDocument *document = [frame DOMDocument];
    if ([document isKindOfClass:[DOMHTMLDocument class]]) {
        result = [[[(DOMHTMLDocument *)document body] innerText] stringByAppendingString:@&quot;\n&quot;];
    }
}

I guess xhtml documents don&apos;t have the class DOMHTMLDocument and that&apos;s why it won&apos;t work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>