Merge "Match audio & video elements in gallery DOM"

This commit is contained in:
jenkins-bot 2018-03-26 16:18:45 +00:00 committed by Gerrit Code Review
commit 5325424988

View file

@ -43,7 +43,7 @@ ve.dm.MWGalleryImageNode.static.toDataElement = function ( domElements, converte
// TODO: Improve handling of missing files. See 'isError' in MWBlockImageNode#toDataElement
li = domElements[ 0 ];
img = li.querySelector( 'img' );
img = li.querySelector( 'img,audio,video' );
// Get caption (may be missing for mode="packed-hover" galleries)
captionDiv = li.querySelector( '.gallerytext' );