From 8c7a33429cd0964c6138aedd176da76e46bae7d3 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Mon, 18 Jul 2016 10:45:36 +0100 Subject: [PATCH] Make Parsoid HTML selectors more specific 'figure img' matches images in captions. Follow-up to d3131db19eef82b5ae22babcee22d6c65e162cee. Bug: T140574 Change-Id: I1ee50846191c9de19ca35d9bd40eb2d3001cf7f5 --- resources/mmv/mmv.bootstrap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/mmv/mmv.bootstrap.js b/resources/mmv/mmv.bootstrap.js index 870033021..08ce0a59a 100644 --- a/resources/mmv/mmv.bootstrap.js +++ b/resources/mmv/mmv.bootstrap.js @@ -136,7 +136,7 @@ '.gallery .image img, ' + 'a.image img, ' + '#file a img, ' + - 'figure[typeof*="mw:Image"] img, ' + + 'figure[typeof*="mw:Image"] > *:first-child > img, ' + 'span[typeof*="mw:Image"] img' );