Better fallback value in case src is missing

Change-Id: Ia9eb5492c871fce97665de718e56d93dd1db433d
This commit is contained in:
Gabriel Wicke 2013-06-26 18:11:37 -07:00
parent 093188931a
commit 65eca748e7

View file

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