mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-12-01 03:26:28 +00:00
ec0e2920ae
Othercontent would often contain the opening tag of the next heading / section. By looking for the closest node with a previousSibling we can more-reliably escape the heading. Also, only add the initial placeholder if there's content before the first heading. We do this by testing for any siblings before the startContainer of the first heading -- if there are any, assume this means there's some sort of content. (This can still result in a placeholder with `othercontent:""` if there's only whitespace before the first heading.) Bug: T313850 Change-Id: I080205b74413c46d3cf3442e79276145aaa9439c |
||
---|---|---|
.. | ||
en-big-parsoid-getHTML.json | ||
en-big-parsoid-getText.json | ||
en-big-parsoid-modified-bullet.html | ||
en-big-parsoid-modified.html | ||
en-big-parsoid-threadItemsHtml.json | ||
en-big-parsoid-transcludedFrom.json | ||
en-big-parsoid.html | ||
en-big-parsoid.json |