T90309: Ensure that implicitly-added <references> output have unique ids

* Fixed parser test output of one test to add unique ids. Output for
  other parser tests modified in f528f508 still need fixing up.
  Left for a separate patch.

Change-Id: I04546c2a590930121d960239a1954b26771e9c80
This commit is contained in:
Subramanya Sastry 2015-02-20 19:02:45 -06:00
parent e3bf708b77
commit 6e6d3481b6

View file

@ -484,7 +484,6 @@ References.prototype.insertReferencesIntoDOM = function(refsNode, refsInReferenc
References.prototype.insertMissingReferencesIntoDOM = function (env, node) {
var doc = node.ownerDocument,
referencesId = env.newAboutId(),
self = this;
this.refGroups.forEach(function (refsData, refsGroup) {
@ -493,7 +492,7 @@ References.prototype.insertMissingReferencesIntoDOM = function (env, node) {
DU.addAttributes(ol, {
'class': 'references',
typeof: 'mw:Extension/references',
about: referencesId
about: env.newAboutId()
});
// The new references come out of "nowhere", so to make selser work
// propertly, add a zero-sized DSR pointing to the end of the document.