Bug 4291
Summary: | dumpAsText doesn't work with XHTML documents | ||
---|---|---|---|
Product: | WebKit | Reporter: | Anders Carlsson <andersca> |
Component: | Tools / Tests | Assignee: | Darin Adler <darin> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | ||
Priority: | P2 | ||
Version: | 420+ | ||
Hardware: | Mac | ||
OS: | OS X 10.4 |
Anders Carlsson
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. |