mediawiki-extensions-Discus.../tests/cases/ar-no-paragraph-oldparser
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
..
ar-no-paragraph-oldparser-formattedreply.html CommentFormatter: Fix inserting placeholder heading marker 2021-02-24 20:32:48 +01:00
ar-no-paragraph-oldparser-modified.html Disambiguate comments by parent ID, rather than sequential numbers 2020-10-22 02:19:21 +02:00
ar-no-paragraph-oldparser-reply.html Allow updating the expected results when running PHP tests 2020-08-04 03:05:28 +02:00
ar-no-paragraph-oldparser.html Move /cases and /data up to /tests 2020-05-18 21:47:17 +01:00
ar-no-paragraph-oldparser.json Use tabs for indentation in JSON test files 2021-01-27 00:25:15 +00:00