DescriptionFixing indent/outdent for <li> elements containing children spanning across
multiple lines (paragraphs).
For such cases the selection only encompasses children contained within the
first paragraph (within the li), thereby causing incorrect behavior when indenting.
Thus we need to ensure while inserting a new li element and cloning the original,
that all the children are considered.
With this change, an existing test: indent-pre-list.html fails because of the
previous incorrect behavior. Two <li>s were created for the indented <li>
with the text contained within the first paragraph forming the first and the
remaining content moving to the second <li> element.
This has now been fixed resulting in only a single indented <li>.
Bug: http://crbug.com/321567
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162651
Patch Set 1 #
Total comments: 5
Patch Set 2 : Modifications as per review comments #
Messages
Total messages: 7 (0 generated)
|