WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
4291
dumpAsText doesn't work with XHTML documents
https://bugs.webkit.org/show_bug.cgi?id=4291
Summary
dumpAsText doesn't work with XHTML documents
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
Add attachment
proposed patch, testcase, etc.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug