mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 15:04:02 +00:00
Better fallback value in case src is missing
Change-Id: Ia9eb5492c871fce97665de718e56d93dd1db433d
This commit is contained in:
parent
093188931a
commit
65eca748e7
|
@ -425,7 +425,7 @@ References.prototype.extractRefFromNode = function(node) {
|
|||
References.prototype.insertReferencesIntoDOM = function(refsNode) {
|
||||
var about = refsNode.getAttribute('about'),
|
||||
group = refsNode.data.parsoid.group || '',
|
||||
src = refsNode.data.parsoid.src || '', // fall back to '' so we don't crash
|
||||
src = refsNode.data.parsoid.src || '<references/>', // fall back so we don't crash
|
||||
// Extract ext-source for <references>..</references> usage
|
||||
body = Util.extractExtBody("references", src).trim(),
|
||||
refGroup = getRefGroup(this.refGroups, group);
|
||||
|
|
Loading…
Reference in a new issue