mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 16:30:12 +00:00
Merge "Don't process references defined inside template-generated reflists"
This commit is contained in:
commit
1f8c99aa72
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue