mediawiki-extensions-Visual.../modules/ve
Roan Kattouw dd6d225ed7 Don't strip HTML attributes from inspected links
When you inspect a link, then close the inspector immediately,
nothing should change. However, AnnotationInspector was comparing
the generated annotation and the existing annotation by hash, and so
would consider an annotation with htmlAttributes different from
one without. This meant that inspecting a Parsoid-generated link
and then closing the inspector would cause a transaction to be
processed that removes the htmlAttributes from the annotation.

I believe a similar issue also existed for annotations with attributes
like origTitle and hrefPrefix, although I didn't reproduce this.

The fix is to have AnnotationInspector compare annotations by the
hash of their comparableObjects, rather than their hashObjects.

Change-Id: I848ffc2b7e7b2c67754a0ece3af105ffafa837ec
2013-11-27 22:54:21 +00:00
..
ce Merge "Revert model to use simple UTF-16 code units" 2013-11-26 22:53:06 +00:00
dm Merge changes If814e178,Id133431e,I38d63e31,I16d575b6 2013-11-26 21:07:46 +00:00
init Plain text paste with paste special 2013-11-26 18:23:58 +00:00
test Merge "Revert model to use simple UTF-16 code units" 2013-11-26 22:53:06 +00:00
ui Don't strip HTML attributes from inspected links 2013-11-27 22:54:21 +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.EventSequencer.js Test Surface with IME-like event sequences 2013-11-25 16:49:49 +00:00
ve.js Revert model to use simple UTF-16 code units 2013-11-26 19:38:14 +00: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 existing violations detected by JSDuck 5 2013-11-19 16:10:25 +05:30
ve.track.js ve.track: add topic-based analytic event subscription 2013-10-16 10:03:27 -07:00