mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
Merge "Match audio & video elements in gallery DOM"
This commit is contained in:
commit
5325424988
|
@ -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' );
|
||||
|
|
Loading…
Reference in a new issue