Merge "Don't process references defined inside template-generated reflists"

This commit is contained in:
jenkins-bot 2020-01-08 23:32:33 +00:00 committed by Gerrit Code Review
commit 1f8c99aa72

View file

@ -91,8 +91,9 @@ ve.dm.MWReferencesListNode.static.toDataElement = function ( domElements, conver
templateGenerated: templateGenerated
}
};
if ( mwData.body && mwData.body.html ) {
if ( mwData.body && mwData.body.html && !templateGenerated ) {
// Process the nodes in .body.html as if they were this node's children
// Don't process template-generated reflists, that mangles the content (T209493)
contentsDiv = domElements[ 0 ].ownerDocument.createElement( 'div' );
contentsDiv.innerHTML = mwData.body.html;
contentsData = converter.getDataFromDomClean( contentsDiv );