mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-12 09:10:32 +00:00
Avoid jQuery.parseHTML
Bug: T187713 Change-Id: I1fd569ba0624d8d25c5ac89d35c27b1bdc2397a7
This commit is contained in:
parent
762f48e560
commit
caaa3551c4
|
@ -223,10 +223,10 @@ ve.ce.MWReferencesListNode.prototype.update = function () {
|
|||
$li = $( '<li>' );
|
||||
|
||||
if ( keyedNodes.length > 1 ) {
|
||||
$refSpan = $( '<span rel="mw:referencedBy">' );
|
||||
$refSpan = $( '<span>' ).attr( 'rel', 'mw:referencedBy' );
|
||||
for ( j = 0, jLen = keyedNodes.length; j < jLen; j++ ) {
|
||||
$link = $( '<a>' ).append(
|
||||
$( '<span class="mw-linkback-text">' )
|
||||
$( '<span>' ).addClass( 'mw-linkback-text' )
|
||||
.text( ( j + 1 ) + ' ' )
|
||||
);
|
||||
if ( refGroup !== '' ) {
|
||||
|
@ -236,8 +236,9 @@ ve.ce.MWReferencesListNode.prototype.update = function () {
|
|||
}
|
||||
$li.append( $refSpan );
|
||||
} else {
|
||||
$link = $( '<a rel="mw:referencedBy">' ).append(
|
||||
$( '<span class="mw-linkback-text">' ).text( '↑ ' )
|
||||
$link = $( '<a>' ).attr( 'rel', 'mw:referencedBy' ).append(
|
||||
$( '<span>' ).addClass( 'mw-linkback-text' )
|
||||
.text( '↑ ' )
|
||||
);
|
||||
if ( refGroup !== '' ) {
|
||||
$link.attr( 'data-mw-group', refGroup );
|
||||
|
|
Loading…
Reference in a new issue