mediawiki-extensions-Discus.../includes
Bartosz Dziewoński 5b26e9664b CommentFormatter: Fix inserting placeholder heading marker
This code expected $container->firstChild to be a
<div class="mw-parser-output">, but that element is not present
when we're running on HTML to be saved in parser cache.

We ended up inserting the marker inside whatever node was the
first on the page, and if it was a <style> element, both our
marker and the styles would be lost when serializing, like in
6c7a0ca9a2.

When we're running on final HTML, the marker will now be outside
of <div class="mw-parser-output">, but that seems to be fine. Only
early versions of I4e60fdbc098c1a74757d6e60fec6bcf8e5db37c1 had
problems with that (see comments on patchset 41), but it works now.

The added test case also covers the fix for T274709.

Bug: T275440
Change-Id: I38d45dd8686919be51e1d307ded12b0afe185eb5
2021-02-24 20:32:48 +01:00
..
Hooks
ApiDiscussionTools.php
ApiDiscussionToolsEdit.php
CommentFormatter.php CommentFormatter: Fix inserting placeholder heading marker 2021-02-24 20:32:48 +01:00
CommentItem.php
CommentModifier.php
CommentParser.php
CommentUtils.php
Data.php
HeadingItem.php
ImmutableRange.php
NodeFilter.php
ThreadItem.php
TreeWalker.php