mediawiki-extensions-Visual.../modules/ve-mw/tests
Arlo Breault 79120fc16c Preserve classes on media wrapper links
Parsoid added a class and, without it, we get selser complaining
about wrappers being modified, similar to T214649.

The "image" class is removed since Parsoid never added it (although it
now has "mw-file-description" for a similar purpose) and the legacy
parser doesn't apply it indiscriminately.

It doesn't seem like VE supports editing the |link= media option; it
just tries to roundtrip what's there and drops it on edit.  The patch
here works with that limitation.

Galleries are found to drop href's, breaking selser, and should be fixed
in a follow up.

Bug: T292657
Bug: T303469
Change-Id: I92359048b42d32fe8a0f2cb79cd348cf5f2c56cc
2022-03-10 10:41:14 -05:00
..
ce Use $.parseHTML() in tests where appropriate 2022-03-09 01:07:57 +01:00
dm Preserve classes on media wrapper links 2022-03-10 10:41:14 -05:00
init/targets DesktopArticleTarget tests: Mock config using QUnit.newMwEnvironment 2022-03-04 13:36:22 +00:00
preinit Re-apply "Re-duplicate deduplicated TemplateStyles" 2022-01-28 02:08:09 +01:00
ui Use $.parseHTML() in tests where appropriate 2022-03-09 01:07:57 +01:00
.eslintrc.json Use no-jquery/no-html to warn against writing HTML strings to the DOM 2021-12-16 01:28:42 +00:00
mw-preload.js test: Omit 'window' in mw-preload.js 2014-11-19 01:46:38 +00:00
ve.test.utils.js DesktopArticleTarget tests: Mock config using QUnit.newMwEnvironment 2022-03-04 13:36:22 +00:00