[Webkit-unassigned] [Bug 105002] trailing whitespace sometimes goes missing when inserted via innerHTML

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 14 14:05:50 PST 2012


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





--- Comment #7 from jochen at chromium.org  2012-12-14 14:08:10 PST ---
(In reply to comment #6)
> Jochen says DRT uses innerTExt to dump the text content (I'd like to see the code, but I believe him).

It's here: http://trac.webkit.org/browser/trunk/Tools/DumpRenderTree/chromium/TestShell.cpp#L408

> 
> String Element::innerText()
> {
>     // We need to update layout, since plainText uses line boxes in the render tree.
>     document()->updateLayoutIgnorePendingStylesheets();
> 
>     if (!renderer())
>         return textContent(true);
> 
>     return plainText(rangeOfContents(const_cast<Element*>(this)).get());
> }
> 
> it's possible that the flakiness comes from having a render or not.

is there a way to force having a renderer()?

-- 
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