[Webkit-unassigned] [Bug 24249] execCommand("outdent") on a list containing a table duplicates the content
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri May 31 20:07:49 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=24249
--- Comment #5 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
This compiles and make us match Chrome Canary 127 and Firefox Nightly 128:
// We should clone all the children of the list item for indenting purposes. However, in case the current
// selection does not encompass all its children, we need to explicitally handle the same. The original
// list item too would require proper deletion in that case.
if (end.anchorNode() == selectedListItem.get() || end.anchorNode()->isDescendantOf(selectedListItem->lastChild()))
moveParagraphWithClones(start, end, newList.get(), selectedListItem.get());
else {
moveParagraphWithClones(start, positionAfterNode(selectedListItem->lastChild()), newList.get(), selectedListItem.get());
removeNode(*selectedListItem);
}
Here - https://searchfox.org/wubkat/rev/427a310bda2e15e3014e59ff411c56c9da485c4c/Source/WebCore/editing/IndentOutdentCommand.cpp#84
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240601/a5d0bab1/attachment.htm>
More information about the webkit-unassigned
mailing list