Descriptioninline <br> does not get deleted when following some non-textual content
deleteSelectionCommand does not handle the case when a <br> element is inlined
after some non-textual content (input controls, image etc.).
When doing a back-delete at the start of a line following such a <br> the two
contiguous lines should merge and the <br> should get deleted.
Currently even though the <br> is deleted, another placeholder <br> is incorrectly
inserted at the same point, thus effectively there is no change.
We are incorrectly computing the <br> to be at the start of an empty line even
though the line is not empty.
In DeleteSelectionCommand::handleSpecialCaseBRDelete() added a check to verify
that the inline <br> is not on an empty line if the end node's previous sibling
is the <br> element.
WebKit changeset: http://trac.webkit.org/changeset/154479
R=eseidel@chromium.org
Patch Set 1 #
Total comments: 6
Patch Set 2 : Patch with changed layout testcase #
Messages
Total messages: 7 (0 generated)
|