mediawiki-extensions-Visual.../modules/ve-mw/tests/dm
Bartosz Dziewoński 91291d3e98 Parse relative hrefs on image nodes like on regular links (try 2)
Previous, reverted attempt: da9b6fffbd.
This attempt also includes 6037fefbe0,
and fixes minor conflicts with other changes.

* In normal images, parse relative 'href' attributes instead of
  expanding them to absolute. This resolves Parsoid generating
  |link= options for copy-pasted images (T193253).

  Keep them in the underscore-form to avoid causing dirty diffs like
  T237040 again. Unlike in the previous attempt, we don't need to be
  super-careful about the 'resource' attribute, thanks to the Parsoid
  changes in T108504.

* 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: I91131728a87c9406bf069d46d3c94c9a8905a003
2021-01-27 11:53:15 +00:00
..
nodes doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.dm.Converter.test.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.dm.Document.test.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.dm.mwExample.js Parse relative hrefs on image nodes like on regular links (try 2) 2021-01-27 11:53:15 +00:00
ve.dm.MWImageModel.test.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.dm.MWInternalLinkAnnotation.test.js ve.dm.MWExternalLinkAnnotation: Alienate malformed links 2020-12-07 13:56:43 +00:00
ve.dm.MWTransclusionModel.test.js Use autogenerated parameter info for templates without TemplateData 2020-01-31 13:43:56 +01:00
ve.dm.SurfaceFragment.test.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00