[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 13:59:11 PST 2012


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





--- Comment #6 from Eric Seidel <eric at webkit.org>  2012-12-14 14:01:31 PST ---
Jochen says DRT uses innerTExt to dump the text content (I'd like to see the code, but I believe him).

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.

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