Added enclosing block restriction while querying for "special ancestor" in
HighestAncestorToWrapMarkup This patch adds a restriction in HighestAncestorToWrapMarkup to check for the presentational elements in the ancestory of start and end position's common ancestor till the enclosing block so it doesn't cross the block boundary. This helps in creating the right markup during serialization when we have an ill-formed HTML like <b><p></p></b> which should be serialized as <p><b><b></p>. Test: run_web_tests web_tests/editing/deleting/merge_paragraph_with_presentation_elements.html BUG: 856413 Change-Id: I5fd03d837e61dea4c66a2ac376b612ac8711dea1 Reviewed-on: https://chromium-review.googlesource.com/c/1482117 Commit-Queue: Anupam Snigdha <snianu@microsoft.com> Reviewed-by:Yoshifumi Inoue <yosin@chromium.org> Cr-Commit-Position: refs/heads/master@{#635411}
Showing
Please register or sign in to comment