diff --git a/modules/ve/dm/nodes/ve.dm.MWBlockImageNode.js b/modules/ve/dm/nodes/ve.dm.MWBlockImageNode.js index 936c2e2f73..592e8f9702 100644 --- a/modules/ve/dm/nodes/ve.dm.MWBlockImageNode.js +++ b/modules/ve/dm/nodes/ve.dm.MWBlockImageNode.js @@ -158,7 +158,6 @@ ve.dm.MWBlockImageNode.static.toDomElements = function ( data, doc, converter ) } else if ( classes.length > 0 ) { figure.className = classes.join( ' ' ); } - a.setAttribute( 'rel', 'mw:thumb' ); a.setAttribute( 'href', dataElement.attributes.href ); img.setAttribute( 'src', dataElement.attributes.src ); img.setAttribute( 'width', dataElement.attributes.width ); diff --git a/modules/ve/test/dm/ve.dm.example.js b/modules/ve/test/dm/ve.dm.example.js index 87bcc1c27d..74b5763211 100644 --- a/modules/ve/test/dm/ve.dm.example.js +++ b/modules/ve/test/dm/ve.dm.example.js @@ -3367,7 +3367,7 @@ ve.dm.example.domToDataCases = { ] }, 'thumb image': { - 'html': '
abc
', + 'html': '
abc
', 'data': [ { 'type': 'mwBlockImage', @@ -3393,7 +3393,7 @@ ve.dm.example.domToDataCases = { ] }, 'attribute preservation does not crash due to text node split': { - 'html': '
foo bar baz
', + 'html': '
foo bar baz
', 'data': [ { 'type': 'mwBlockImage',