mediawiki-extensions-Visual.../modules/ve/dm
Catrope 9ff6737f4c Refactor HTML attribute preservation
Rather than using namespaced linmod attributes, store the preserved
HTML attributes in the .htmlAttributes property of the linear model
element, in a nested structure to allow for easier treatment of child
nodes. Also added attribute order preservation by storing attributes
as an object plus an array of keys.

ve.ce.Node.js:
* Remove html/* attribute synchronization. Doesn't make sense any more
  because these things aren't in the attributes object any more. I don't
  think it ever made sense because these attributes were never supposed
  to be changed anyway.

ve.ce.View.js:
* Replace renderAttributes() with a simple wrapper around
  renderHtmlAttributeList()

ve.dm.Converter.js:
* Add buildHtmlAttributeList() and renderHtmlAttributes() for building
  and rendering HTML attribute lists

ve.dm.Model.js:
* Add getter for .htmlAttributes

ve.dm.Node.js:
* Drop .htmlAttributes on clone, and remove logic dropping html/*

ve.ui.MWCategoryWidget.js:
* Remove html/0/about hack, was already unnecessary and now doesn't
  work any more

tests/:
* UPDATE ALL THE TESTS

Change-Id: I620573afd70d36ade6b80413075b6e1f4a435abe
2013-05-17 20:57:33 -07:00
..
annotations Configurable insertion annotations 2013-05-06 22:57:35 +00:00
lineardata Fix range translation for surface fragments 2013-04-30 17:08:15 +01:00
metaitems Fix categories with multiple ../ in their hrefPrefix 2013-05-13 11:10:02 -07:00
nodes Fix image block node error 2013-05-15 16:24:10 -07:00
ve.dm.Annotation.js Configurable insertion annotations 2013-05-06 22:57:35 +00:00
ve.dm.AnnotationFactory.js Convert AnnotationFactory and MetaItemFactory to NamedClassFactories 2013-04-09 12:05:05 -07:00
ve.dm.AnnotationSet.js Configurable insertion annotations 2013-05-06 22:57:35 +00:00
ve.dm.BranchNode.js
ve.dm.Converter.js Refactor HTML attribute preservation 2013-05-17 20:57:33 -07:00
ve.dm.DataString.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.Document.js Optimise code for first/last child detection in fixupInsertion 2013-05-13 12:37:01 +01:00
ve.dm.DocumentSlice.js
ve.dm.DocumentSynchronizer.js Deduplicate childUpdate events based on transaction and appliedness 2013-04-25 17:08:30 -07:00
ve.dm.IndexValueStore.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.InternalList.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.dm.js
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 Refactor HTML attribute preservation 2013-05-17 20:57:33 -07:00
ve.dm.ModelRegistry.js Force about grouping for multi-element about groups 2013-05-05 00:07:29 -07:00
ve.dm.Node.js Refactor HTML attribute preservation 2013-05-17 20:57:33 -07:00
ve.dm.NodeFactory.js Make .static.storeHtmlAttributes more versatile 2013-05-07 14:45:26 -07:00
ve.dm.Surface.js Move completeHistory from dm.Surface to dm.Document 2013-05-09 14:54:25 -07:00
ve.dm.SurfaceFragment.js Move completeHistory from dm.Surface to dm.Document 2013-05-09 14:54:25 -07:00
ve.dm.Transaction.js ve.ce.ProtectedNode 2013-05-07 00:08:48 +00:00
ve.dm.TransactionProcessor.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00