mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-24 06:54:00 +00:00
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:
parent
e3bf708b77
commit
6e6d3481b6
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue