[Webkit-unassigned] [Bug 125597] mo text does not appear in dumpAsText output

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Dec 12 21:12:53 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=125597





--- Comment #3 from Darin Adler <darin at apple.com>  2013-12-12 21:11:04 PST ---
RenderTreeAsText.cpp is only used when you do *not* call dumpAsText.

The testRunner.dumpAsText feature is implemented with the DOM innerText function, so there is not necessarily a way to fix this without changing the behavior of the DOM. The innerText function, in turn, is based on the text iterator in TextIterator.cpp, which is the same code used for things like converting a selection to plain text on the clipboard when you select and copy something, or searching for text with the browser’s find command.

So this is likely a bug in the MathML implementation and not a tools issue, assuming that we want text from inside an <mo> to be copyable and searchable, etc.

The text iterator primarily iterates the DOM and not the render tree. It does not have any code to dig inside of the kind of render tree that RenderMathMLOperator::updateFromElement builds. We could add code for that, or we could simply add special case code to TextIterator::handleNonTextNode to handle RenderMathMLOperator specially.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list