Merge "Work around Parsoid's messy handling of some extensions"

This commit is contained in:
jenkins-bot 2023-11-28 20:17:36 +00:00 committed by Gerrit Code Review
commit da2e527840

View file

@ -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)