mediawiki-extensions-Visual.../modules/ve-mw/tests/dm
Roan Kattouw bb45d984ca dm.MWInternalLinkAnnotation: Fix href normalization for special characters
<a href="Foo%3F"> would dirty-diff to <a href="Foo?"> and also render
as such, pointing to the wrong page.

We also called decodeURIComponent() on the href twice, which can't
have been good.

Move URI decoding and underscore normalization into
getTargetDataFromHref(), and add rawTitle for callers that need it.
Put rawTitle in the origTitle attribute, so that equivalence
comparisons (decode(origTitle) === title) work as intended.

Bug: T145978
Change-Id: I29331a4ab0f8f7ef059c109f6813fa670a2c7390
2016-09-22 09:10:41 -07:00
..
nodes build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.dm.Converter.test.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.dm.Document.test.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.dm.mwExample.js dm.MWInternalLinkAnnotation: Fix href normalization for special characters 2016-09-22 09:10:41 -07:00
ve.dm.MWImageModel.test.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00
ve.dm.MWInternalLinkAnnotation.test.js dm.MWInternalLinkAnnotation: Fix href normalization for special characters 2016-09-22 09:10:41 -07:00
ve.dm.SurfaceFragment.test.js build: Bump file copyright notices for 2016 2016-01-03 14:57:25 -08:00