[Webkit-unassigned] [Bug 113240] TextIterator emits LF for a br element inside an empty textarea element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Mar 25 17:19:30 PDT 2013


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





--- Comment #7 from Ryosuke Niwa <rniwa at webkit.org>  2013-03-25 17:21:57 PST ---
(In reply to comment #6)
> (From update of attachment 194939 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=194939&action=review
> 
> >> Source/WebCore/editing/TextIterator.cpp:757
> >> +    return emitsOriginalText || !(node->isInShadowTree() && (node->shadowHost()->toInputElement() || isHTMLTextAreaElement(node->shadowHost())));
> > 
> > How does this work? This code change will make it so that we never emit new lines for BRs inside textarea.
> > We need to emit BRs between lines.
> 
> In Chromium each new line seems to be a new text node. Is that not the case for Safari?

That's not always true even in Chromium. I mean… that's the entire reason we have this bug, right?

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