mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +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
|
// TODO: Improve handling of missing files. See 'isError' in MWBlockImageNode#toDataElement
|
||||||
li = domElements[ 0 ];
|
li = domElements[ 0 ];
|
||||||
img = li.querySelector( 'img' );
|
img = li.querySelector( 'img,audio,video' );
|
||||||
|
|
||||||
// Get caption (may be missing for mode="packed-hover" galleries)
|
// Get caption (may be missing for mode="packed-hover" galleries)
|
||||||
captionDiv = li.querySelector( '.gallerytext' );
|
captionDiv = li.querySelector( '.gallerytext' );
|
||||||
|
|
Loading…
Reference in a new issue