mediawiki-extensions-Visual.../modules/ve-mw
Bartosz Dziewoński da9b6fffbd Parse relative hrefs on image nodes like on regular links
* In normal images, parse relative 'href' attributes instead of
  expanding them to absolute, and parse 'resource' to keep it
  identical to 'href' if they refer to the same page (including
  same percent-encoding and space/underscore). This resolves Parsoid
  generating |link= options for copy-pasted images (T193253).

* In gallery images stuff, prefix the 'resource' attribute with './',
  same as normal images do. This causes no functional changes, but it
  makes updating tests easier, and the consistency is probably good.

* Update test examples to also prefix 'resource' and relative 'href'
  attributes with './', like the real Parsoid does.

Bug: T193253
Change-Id: If2d7f080d9d693568054f8311c1e1b15ca27ea5c
2019-09-25 00:25:04 +02:00
..
ce Parse relative hrefs on image nodes like on regular links 2019-09-25 00:25:04 +02:00
dm Parse relative hrefs on image nodes like on regular links 2019-09-25 00:25:04 +02:00
init Add another looser selector for catching pasted references 2019-09-10 12:32:10 +01:00
tests Parse relative hrefs on image nodes like on regular links 2019-09-25 00:25:04 +02:00
themes SaveDialog: Hide options bar when empty 2019-07-16 14:28:25 +01:00
ui Parse relative hrefs on image nodes like on regular links 2019-09-25 00:25:04 +02:00
ve.MWutils.js eslint: Enable valid-jsdoc 2019-04-17 17:13:39 +01:00