mediawiki-extensions-Discus.../tests/cases/accidental-transclusion2/accidental-transclusion2-modified.html
Bartosz Dziewoński 3a0b05f564 Allow replying to some comments with accidental complex transclusions
When a comment almost exactly matches the range of an
accidental complex transclusion consisting only of
pages from the 'Template' namespace and wikitext fragments,
I think we can safely allow replying to the comment.

Even if this turns out to be incorrect in some cases,
the failure will be more graceful after the changes in T313100:
instead of potentially duplicating contents from a template,
the worst case now is that the reply will appear in the wrong
place (at the end of the transclusion).

Bug: T313093
Change-Id: Ie8da09d74a652d893fd8c3e2435ef6cb70fad64a
2022-11-14 19:17:36 +01:00

3 lines
1.8 KiB
HTML

<!DOCTYPE html>
<html prefix="dc: http://purl.org/dc/terms/ mw: http://mediawiki.org/rdf/" about="http://localhost:3080/wiki/Special:Redirect/revision/6215"><head prefix="mwr: http://localhost:3080/wiki/Special:Redirect/"><meta charset="utf-8"/><meta property="mw:pageId" content="2021"/><meta property="mw:pageNamespace" content="1"/><link rel="dc:replaces" resource="mwr:revision/6214"/><meta property="mw:revisionSHA1" content="8ffd7cbff72a46009bf1422f5dc6b1c849d13a90"/><meta property="dc:modified" content="2022-10-08T17:21:35.000Z"/><meta property="mw:htmlVersion" content="2.6.0"/><meta property="mw:html:version" content="2.6.0"/><link rel="dc:isVersionOf" href="http://localhost:3080/wiki/Talk%3AT313093"/><base href="http://localhost:3080/wiki/"/><title>Talk:T313093</title><link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=mediawiki.skinning.content.parsoid%7Cmediawiki.skinning.interface%7Csite.styles&amp;only=styles&amp;skin=vector"/><meta http-equiv="content-language" content="en"/><meta http-equiv="vary" content="Accept"/></head><body id="mwAA" lang="en" class="mw-content-ltr sitedir-ltr ltr mw-body-content parsoid-body mediawiki mw-parser-output" dir="ltr"><section data-mw-section-id="0" id="mwAQ"></section><section data-mw-section-id="1" id="mwAg"><h2 id="test">test</h2>
<div id="mwAw"></div><p about="#mwt1" typeof="mw:Transclusion" data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"Hello"}},"i":0}}," [[User:Matma Rex|Matma Rex]] ([[User talk:Matma Rex|talk]]) 00:00, 1 October 2022 (UTC)"]}' id="mwBA">Hello <a rel="mw:WikiLink" href="./User:Matma_Rex" title="User:Matma Rex">Matma Rex</a> (<a rel="mw:WikiLink" href="./User_talk:Matma_Rex" title="User talk:Matma Rex">talk</a>) 00:00, 1 October 2022 (UTC)</p><dl><dd>Reply to c-Matma_Rex-20221001000000-test</dd></dl></section></body></html>