Bug 4291

Summary: dumpAsText doesn't work with XHTML documents
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: Tools / TestsAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   

Anders Carlsson
Reported 2005-08-05 00:48:37 PDT
When using dumpAsText with xhtml documents, the result is "error" 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:@"\n"]; } } I guess xhtml documents don't have the class DOMHTMLDocument and that's why it won't work.
Attachments
Note You need to log in before you can comment on or make changes to this bug.