diff --git a/modules/ve-cite/tests/ve.dm.citeExample.js b/modules/ve-cite/tests/ve.dm.citeExample.js index c326e1f50..3d822a8de 100644 --- a/modules/ve-cite/tests/ve.dm.citeExample.js +++ b/modules/ve-cite/tests/ve.dm.citeExample.js @@ -18,113 +18,113 @@ ve.dm.citeExample.domToDataCases = { // Ref in refs body: '

Foo' + - '' + + '' + '[1]' + - '' + + '' + ' Baz' + - '' + + '' + '[g1 1]' + - '' + + '' + ' Whee' + - '' + '[1]' + - '' + + '' + ' Yay' + // This reference has .body.id instead of .body.html - '' + + '' + '[g1 2]' + - '' + + '' + ' Quux' + - '' + + '' + '[1]' + - '' + + '' + ' Foo' + - '' + '[g1 3]' + - '' + + '' + '

' + // The HTML below is enriched to wrap reference contents in // which Parsoid doesn't do yet, but T88290 asks for '
    ' + + '[3]"},"attrs":{"group":"g1"}}">' + '
  1. Quux
  2. ' + '
  3. No name
  4. ' + '
  5. Ref in refs
  6. ' + '
', fromDataBody: '

Foo' + - '' + - '' + + '' + + '' + ' Baz' + - '' + - '' + + '' + + '' + ' Whee' + - 'Bar' + '"},"attrs":{"name":"bar"}}" typeof="mw:Extension/ref">' + - '' + + '' + ' Yay' + - '' + - '' + + '' + + '' + ' Quux' + - '' + - '' + + '' + + '' + ' Foo' + - '' + - '' + + '' + '

' + '
' + + '"}}">' + '
', clipboardBody: '

Foo' + - '' + + '' + '[1]' + - '' + + '' + ' Baz' + - '' + + '' + '[g1 1]' + - '' + + '' + ' Whee' + - '' + '[1]' + - '' + + '' + ' Yay' + // This reference has .body.id instead of .body.html - '' + + '' + '[g1 2]' + - '' + + '' + ' Quux' + - '' + + '' + '[1]' + - '' + + '' + ' Foo' + - '' + + '' + '[g1 3]' + - '' + + '' + '

' + // The HTML below is enriched to wrap reference contents in // which Parsoid doesn't do yet, but T88290 asks for '
' + + '\\" class=\\"mw-ref\\">[g1 3]"}}">' + '
', head: '', data: [ @@ -222,10 +222,10 @@ ve.dm.citeExample.domToDataCases = { name: 'references', attrs: { group: 'g1' }, body: { - html: '[3]' + html: '[3]' } }, - originalMw: '{"name":"references","body":{"html":"[3]"},"attrs":{"group":"g1"}}', + originalMw: '{"name":"references","body":{"html":"[3]"},"attrs":{"group":"g1"}}', listGroup: 'mwReference/g1', refGroup: 'g1', isResponsive: true @@ -310,20 +310,20 @@ ve.dm.citeExample.domToDataCases = { ] }, 'mw:Reference with metadata': { - body: '

' + - '[1]

', - fromDataBody: '

[1]

', + fromDataBody: '

', - clipboardBody: '

', + clipboardBody: '

' + - '[1]

', + '[1]

', head: '', data: [ { type: 'paragraph' }, diff --git a/modules/ve-cite/ve.dm.MWReferenceNode.js b/modules/ve-cite/ve.dm.MWReferenceNode.js index fa0d6cb03..67137b4d0 100644 --- a/modules/ve-cite/ve.dm.MWReferenceNode.js +++ b/modules/ve-cite/ve.dm.MWReferenceNode.js @@ -104,7 +104,7 @@ ve.dm.MWReferenceNode.static.toDomElements = function ( dataElement, doc, conver var itemNodeHtml, originalHtml, mwData, i, iLen, keyedNodes, setContents, contentsAlreadySet, originalMw, listKeyParts, name, group, $link, isForClipboard = converter.isForClipboard(), - el = doc.createElement( 'span' ), + el = doc.createElement( 'sup' ), itemNodeWrapper = doc.createElement( 'div' ), originalHtmlWrapper = doc.createElement( 'div' ), itemNode = converter.internalList.getItemNode( dataElement.attributes.listIndex ),