mediawiki-extensions-Visual.../modules/ve/ce
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 ve.Element refactor 2013-05-14 19:47:32 +00:00
nodes Emit teardown event before replacing generated content node content and emit setup event after. 2013-05-15 17:35:49 -07:00
styles Fixing block template styling 2013-05-15 16:37:27 -07:00
ve.ce.Annotation.js ve.Element refactor 2013-05-14 19:47:32 +00:00
ve.ce.AnnotationFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.ce.BranchNode.js Introduction of setup and teardown events for ve.ce.View nodes 2013-05-14 19:47:40 +00:00
ve.ce.ContentBranchNode.js ve.Element refactor 2013-05-14 19:47:32 +00:00
ve.ce.Document.js ve.Editor 2013-05-15 10:39:12 -07:00
ve.ce.DomRange.js DomRange makes more sense as a name for this class (cause it is not rangy specific). 2013-03-05 12:18:59 -08:00
ve.ce.FocusableNode.js ve.ui.Context: Add embedding feature 2013-05-16 11:23:59 -07:00
ve.ce.js ve.ce.ProtectedNode 2013-05-07 00:08:48 +00:00
ve.ce.LeafNode.js Introduction of setup and teardown events for ve.ce.View nodes 2013-05-14 19:47:40 +00:00
ve.ce.Node.js Refactor HTML attribute preservation 2013-05-17 20:57:33 -07:00
ve.ce.NodeFactory.js Rename ve.NodeFactory to ve.NamedClassFactory 2013-04-09 12:05:05 -07:00
ve.ce.ProtectedNode.js Make ve.ce.ProtectedNode use setup (for setup) and teardown (for teardown) events so it is going to work well after node is rewrapped (example: MWBlockImageNode). 2013-05-15 10:28:56 -07:00
ve.ce.RelocatableNode.js ve.ce.ProtectedNode 2013-05-07 00:08:48 +00:00
ve.ce.ResizableNode.js EventEmitter API cleanup 2013-05-02 15:05:59 -07:00
ve.ce.Surface.js ve.ui.Context: Add embedding feature 2013-05-16 11:23:59 -07:00
ve.ce.SurfaceObserver.js ve.ce.ProtectedNode 2013-05-07 00:08:48 +00:00
ve.ce.View.js Refactor HTML attribute preservation 2013-05-17 20:57:33 -07:00