To reproduce: open the attachment w/ a debug build of TOT WebKit, choose Edit > Select All and the Edit > Copy. Actual result: ASSERTION FAILED: root (WebCore/editing/markup.cpp:397 WebCore::DeprecatedString WebCore::createMarkup(const WebCore::Range*, WTF::Vector<WebCore::Node*, 0ul>*, WebCore::EAnnotateForInterchange))
Created attachment 13218 [details] Test case (will assert when instructions are followed)
Created attachment 13219 [details] Non-SVG test case (ditto)
Created attachment 13225 [details] Look for <body> (and assert if not found) only in HTML documents
Comment on attachment 13225 [details] Look for <body> (and assert if not found) only in HTML documents Based on Alexey's comments, I am going to leave this to other people who know what they're doing.
Comment on attachment 13225 [details] Look for <body> (and assert if not found) only in HTML documents I think it is wrong to introduce different behavior for HTML and XHTML here (since isHTMLDocument() returns false for XHML). I am not quite sure about the correct solution, but maybe one can just traverse up the hierarchy until seeing either a node that's not an HTML element, or a body.
Created attachment 13427 [details] remove the assertion Not that I know what I'm doing... :-)
Comment on attachment 13427 [details] remove the assertion I think removing the assertion is probably right. r=me
Committed revision 19926.