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 Add body class to enable reply links 2021-02-10 15:40:34 +00:00
ApiDiscussionTools.php Improve API parameter documentation 2021-02-13 00:08:31 +01:00
ApiDiscussionToolsEdit.php Improve API parameter documentation 2021-02-13 00:08:31 +01:00
CommentFormatter.php CommentFormatter: Fix inserting placeholder heading marker 2021-02-24 20:32:48 +01:00
CommentItem.php Don't allow CommentItem author to be null 2021-02-22 20:55:35 +00:00
CommentModifier.php Remove a TODO note about wrappers 2021-02-08 22:23:54 +01:00
CommentParser.php Don't allow CommentItem author to be null 2021-02-22 20:55:35 +00:00
CommentUtils.php Add missing out-of-index guard to CommentUtils 2021-02-09 12:27:41 +01:00
Data.php build: Updating mediawiki/mediawiki-codesniffer to 32.0.0 2020-10-29 10:53:01 +00:00
HeadingItem.php Move ID->title logic into HeadingItem 2020-11-05 16:10:39 +00:00
ImmutableRange.php ImmutableRange: Guard against appending empty fragments 2020-11-16 19:22:26 +00:00
NodeFilter.php CommentParser.php: Use tree walking instead of XPath 2020-07-15 16:40:50 +00:00
ThreadItem.php De-indent multi line comments when fetching comment bodies 2020-11-22 21:49:08 +00:00
TreeWalker.php Base TreeWalker implementation on PHPDOM 2020-11-19 23:45:42 +00:00