From 8b42a5917c89b776d6a4edf28d839f7c486d6223 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Thu, 5 Apr 2018 12:57:18 +0100 Subject: [PATCH] Add img.src's to gallery DM output Bug: T191377 Bug: T191436 Change-Id: Ie6b3593876c92f8e6f08fb005d876304223491ed --- modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js index 37fc596454..5fadcca2fa 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js @@ -107,6 +107,7 @@ ve.dm.MWGalleryImageNode.static.toDomElements = function ( data, doc ) { // a.setAttribute( 'href', model.attributes.src ); img.setAttribute( 'resource', model.attributes.resource ); + img.setAttribute( 'src', model.attributes.src ); if ( alt ) { img.setAttribute( 'alt', alt ); }