mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +00:00
f24dbb3435
We unconditionally retrieved originalHtml from itemNode, even if there was no data-mw.body.id, so as long as the reference itself wasn't edited, we would never overwrite data-mw. This meant that if the <ref> with the contents was deleted, the contents wouldn't be transfered to the first <ref> tag with that name like they're supposed to be. The solution is to only look at originalHtml from itemNode if data-mw.body.id is set. Change-Id: Ib87491b6fa6a77d62384158f8e8f7dcc2a36c23a |
||
---|---|---|
.. | ||
annotations | ||
metaitems | ||
models | ||
nodes | ||
ve.dm.MW.js |