mediawiki-extensions-Visual.../modules/ve-mw/dm
Bartosz Dziewoński 98351fbcf3 Do not "resolve attributes" in toDomElements() overrides
Resolving attributes means turning 'href' and 'src' URLs from possibly
relative to absolute, so that they don't depend on the base URI of the
document.

This is necessary when rendering for clipboard (and in some other
cases), but at the point when toDomElements() is called, the document
these elements are in does not necessary have a sane base URI set,
giving us hrefs pointing to nonexistent pages.

Don't do it here; it will happen later when we know what the right
document (and right base URI) is, e.g. in ve.ce.Surface#onCopy or
ve.ui.PreviewElement#replaceWithModelDom.

Bug: T169675
Bug: T175157
Change-Id: Ie0a5d6e1c57b8efdbbfba0c24f31ca91d156e200
2017-09-07 14:06:24 +02:00
..
annotations tests: MWInternalLinkAnnotation getFragment 2017-04-27 11:21:58 -05:00
metaitems Follow-up 57a06a6: Use the same attribute name on read and on write 2017-05-02 14:42:22 -07:00
models Create wrapper paragraph when converting block image to inline 2017-08-24 15:56:22 +01:00
nodes Do not "resolve attributes" in toDomElements() overrides 2017-09-07 14:06:24 +02:00
ve.dm.MWWikitextSurface.js build: Bump file copyright notices for 2017 2017-01-03 08:58:33 -08:00
ve.dm.MWWikitextSurfaceFragment.js MWWikitextSurfaceFragment#convertFromSource: Don't make an invalid doc 2017-03-02 05:43:03 +00:00