mediawiki-extensions-Visual.../modules/ve
Roan Kattouw 74b8807df5 Resolve rendered URLs according to the provided <base>
This is done by using the computed property value rather than the
literal attribute value when rendering href and src attributes.
Helpfully, this provides perfect URL resolution natively in the browser,
which means the document's <base> is respected and all that good stuff.

For GeneratedContentNodes, we also need to find all DOM elements inside
the rendered DOM that have href or src attributes and resolve those.
This is done in the new getRenderedDomElements() function, which the
existing cleanup steps (remove <link>/<meta>/<style>, clone for
correct document) were moved into.

In order to make sure that the computed values are always computed
correctly, we need to make sure that in cases where HTML strings
in data-mw are parsed, they're parsed in the context of the correct
document so the correct <base> is applied.

We still need to solve this problem for models that actually store and
edit an href or src as an attribute. I'll post more about that on
bug 48915.

Bug: 48915
Change-Id: Iaccb9e3fc05cd151a0f5e632c8d3bd3568735309
2013-10-28 15:16:05 +00:00
..
ce Resolve rendered URLs according to the provided <base> 2013-10-28 15:16:05 +00:00
dm Resolve rendered URLs according to the provided <base> 2013-10-28 15:16:05 +00:00
init Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
test Resolve rendered URLs according to the provided <base> 2013-10-28 15:16:05 +00:00
ui Merge changes Iaba76ac1,Ib15c39f3,If5a3b4d4,I44425d26,I8f162894 2013-10-25 21:05:32 +00:00
ve.BranchNode.js
ve.debug.js
ve.Document.js Use OO.EventEmitter instead of ve.EventEmitter 2013-10-22 16:57:33 +00:00
ve.Element.js Toolbar action widgetization and UI refactoring 2013-10-04 16:26:13 -07:00
ve.EventSequencer.js Fix initialisation errors in EventSequencer 2013-10-08 00:24:45 +01:00
ve.js Remove simpleArray utilities from ve.js and use oojs instead 2013-10-23 03:26:53 +02:00
ve.LeafNode.js
ve.Node.js Rename @emits to @fires so we're forward compatible with JSDuck 5 2013-10-22 19:11:16 +00:00
ve.Range.js doc: Fix incorrect syntax 2013-09-06 20:29:18 +00:00
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00