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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Mar 14 20:58:18 PDT 2013


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





--- Comment #22 from Ryosuke Niwa <rniwa at webkit.org>  2013-03-14 21:00:43 PST ---
(From update of attachment 193226)
View in context: https://bugs.webkit.org/attachment.cgi?id=193226&action=review

> Source/WebCore/editing/TextIterator.cpp:755
> +    if ((!renderer || !renderer->isBR()) && !node->hasTagName(brTag))
> +        return false;

Oh oops, sorry I lied. This is not identical :( This behaves differently than the old code when renderer->isBR() is false and node->hasTagName(brTag) is true.
We need to do renderer ? !renderer->isBR() : !node->hasTagName(brTag) instead.

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