BearND has uploaded a new change for review.
https://gerrit.wikimedia.org/r/263888
Change subject: Remove class=image attribute from image links
......................................................................
Remove class=image attribute from image links
So the app doesn't try to open the gallery. We also don't need this. So, we'd
like to avoid that in the payload.
Bug: T123527
Change-Id: Ic9caa71d1289f79c29c72ef516ee8a2cf81fddc9
---
M lib/transforms.js
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps
refs/changes/88/263888/1
diff --git a/lib/transforms.js b/lib/transforms.js
index 95b3dc6..720633c 100644
--- a/lib/transforms.js
+++ b/lib/transforms.js
@@ -199,6 +199,7 @@
rmAttributes(doc, 'abbr', ['title']);
rmAttributes(doc, 'figure', ['id', 'typeof']);
rmAttributes(doc, 'b,q,td,figcaption', ['id']);
+ rmAttributes(doc, 'figcaption a[class~=image]', ['class']); // T123527
rmAttributes(doc, 'i', ['about', 'data-mw', 'id', 'typeof']);
rmAttributes(doc, 'li', ['about']);
rmAttributes(doc, 'img', ['alt', 'data-file-height', 'data-file-type',
'data-file-width', 'id', 'resource']);
--
To view, visit https://gerrit.wikimedia.org/r/263888
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic9caa71d1289f79c29c72ef516ee8a2cf81fddc9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: BearND <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits