if a page contains something like <pre> some text describing markup, eg <b> </pre> the html returned by inner/outerHTML of any of its parents is <pre> some text describing markup, eg <b> </pre> I assume that "startMarkup" in "markup.cpp" should not call "stringValueForRange" for a "preTag", but use the reular path. If I remove the preTag from the "if" at the beginning of the "case Node::TEXT_NODE" I get the desired result.
Created attachment 13126 [details] Check the innerHTML in the WebInspector!
*** Bug 12744 has been marked as a duplicate of this bug. ***
Bug 12744 has a good test case.
I think a dup of this is in radar, assigned to Justin.
<rdar://problem/4545040>
r19948
r19949