mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
Merge "Work around Parsoid's messy handling of some extensions"
This commit is contained in:
commit
da2e527840
|
@ -362,7 +362,10 @@ class CommentFormatter {
|
|||
return $item->jsonSerialize( true );
|
||||
}, $threadItemSet->getThreadsStructured() );
|
||||
|
||||
$pout->setJsConfigVar( 'wgDiscussionToolsPageThreads', $threadsJSON );
|
||||
// Temporary hack to deal with T351461#9358034: this should be a
|
||||
// call to `setJsConfigVar` but Parsoid is currently reprocessing
|
||||
// content from extensions.
|
||||
$pout->addJsConfigVars( 'wgDiscussionToolsPageThreads', $threadsJSON );
|
||||
|
||||
// Like DOMCompat::getInnerHTML(), but disable 'smartQuote' for compatibility with
|
||||
// ParserOutput::EDITSECTION_REGEX matching 'mw:editsection' tags (T274709)
|
||||
|
|
Loading…
Reference in a new issue