There are cases where if the last styled node was not parent node of a current text node, but we wish to style the text node we will add a style span to surround the text node. We do this via createStyleSpanElement. However, in order to properly insert the span within the current node, it requires the parent node to have editable style and renderer.
Created attachment 442127 [details] Patch
Created attachment 442173 [details] Patch
Comment on attachment 442173 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=442173&action=review > Source/WebCore/ChangeLog:7 > + There should be an analysis of the bug and what you did to fix it here.
(In reply to Simon Fraser (smfr) from comment #3) > Comment on attachment 442173 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=442173&action=review > > > Source/WebCore/ChangeLog:7 > > + > > There should be an analysis of the bug and what you did to fix it here. Thank you, I will add an analysis here.
Created attachment 442180 [details] Patch
Created attachment 442182 [details] Patch
Committed r284792 (243501@main): <https://commits.webkit.org/243501@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 442182 [details].
<rdar://problem/84620978>