diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js index 5fadcca2fa..7c27463368 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWGalleryImageNode.js @@ -72,7 +72,8 @@ ve.dm.MWGalleryImageNode.static.toDataElement = function ( domElements, converte attributes: { resource: ve.normalizeParsoidResourceName( img.getAttribute( 'resource' ) ), altText: img.getAttribute( 'alt' ), - src: img.getAttribute( 'src' ), + // 'src' for images, 'poster' for video/audio + src: img.getAttribute( 'src' ) || img.getAttribute( 'poster' ), height: img.getAttribute( 'height' ), width: img.getAttribute( 'width' ) }