mediawiki-extensions-Visual.../modules/ve/dm
Roan Kattouw 92ffa0739d Fix reserialization of mw-data.body.html
This bug caused all references containing complex content (e.g. links
or templates) to be dirty-DOMed and reformatted by Parsoid.

ve.dm.MWReferenceNode.js:
* Parse the original body.html and check if it's semantically equal to
  the new value. If so, don't set it.

ve.dm.Converter.js:
* .normalize() the converter output to remove empty text nodes and
  merge adjacent text nodes

ve.dm.example.js:
* Update reused reference test to have body.html absent, not empty
* Add a link to one of the reference tests so this bug is triggered
** The link's attributes are ordered specifically so that toDomElements
   will reorder them, at least in Chrome (may behave differently in
   other browsers)
** This test fails without this fix in place

Change-Id: Idc091a14422fbb117a3d06fc6bb9497768086fc3
2013-06-25 19:24:18 -07:00
..
annotations Only use HTML attributes when comparing annotations for serialisation 2013-06-25 17:57:08 +01:00
lineardata Revert "ve.dm.Transaction: Implement newFromDocumentInsertion" 2013-06-25 22:08:37 +00:00
metaitems Copy DOM elements properly, into the correct document 2013-06-18 15:40:33 -07:00
models ve.dm.MWTemplateSpecModel: Expand parameter aliases 2013-06-23 17:25:52 -07:00
nodes Fix reserialization of mw-data.body.html 2013-06-25 19:24:18 -07:00
ve.dm.Annotation.js Only use HTML attributes when comparing annotations for serialisation 2013-06-25 17:57:08 +01:00
ve.dm.AnnotationFactory.js Convert AnnotationFactory and MetaItemFactory to NamedClassFactories 2013-04-09 12:05:05 -07:00
ve.dm.AnnotationSet.js Only use HTML attributes when comparing annotations for serialisation 2013-06-25 17:57:08 +01:00
ve.dm.BranchNode.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.dm.Converter.js Fix reserialization of mw-data.body.html 2013-06-25 19:24:18 -07:00
ve.dm.DataString.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.Document.js Revert "ve.dm.Transaction: Implement newFromDocumentInsertion" 2013-06-25 22:08:37 +00:00
ve.dm.DocumentSlice.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.DocumentSynchronizer.js Deduplicate childUpdate events based on transaction and appliedness 2013-04-25 17:08:30 -07:00
ve.dm.IndexValueStore.js Preserve location of reference body within key 2013-06-10 02:54:26 +00:00
ve.dm.InternalList.js Revert "ve.dm.Transaction: Implement newFromDocumentInsertion" 2013-06-25 22:08:37 +00:00
ve.dm.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.LeafNode.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.dm.LinearData.js Store data in LinearData class with an index-value store for objects 2013-03-30 10:06:34 +00:00
ve.dm.MetaItem.js Fieldsets and default sort keys 2013-05-10 16:46:08 -07:00
ve.dm.MetaItemFactory.js Make .static.storeHtmlAttributes more versatile 2013-05-07 14:45:26 -07:00
ve.dm.MetaList.js Fix breaking getLength() call 2013-05-10 17:02:07 -07:00
ve.dm.Model.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.dm.ModelRegistry.js Straighten out variances in parent method invocation 2013-06-21 19:20:37 +00:00
ve.dm.Node.js Merging and remapping of IVStores and InternalLists 2013-05-25 11:33:35 +00:00
ve.dm.NodeFactory.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.dm.Surface.js Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.dm.SurfaceFragment.js Code style fix: (X) -> ( X ) 2013-06-24 18:51:59 +01:00
ve.dm.Transaction.js Revert "ve.dm.Transaction: Implement newFromDocumentInsertion" 2013-06-25 22:08:37 +00:00
ve.dm.TransactionProcessor.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00