mediawiki-extensions-Visual.../modules/ve/dm
Ed Sanders 67e9d5d1dd (bug 45029) Transactions for metadata modification.
Have created builders for insertion, removal, and single element replacement.

In adding Document.getMetadata which is nearly identical to Document.getData,
the two functions have been refactored to use a common static method
getDataSlice, with this.data/this.metadata as an argument.

Document.spliceMetadata has been added. It is essentially spliceData with
the data/metadata synchronisation issue.

Metadata cursor position is now tracked in the TransactionProcessor. Cursor
advancement has been moved to a function so the metadata cursor can be reset
every time the data cursor is moved.

There were unhit bugs in the TransactionProcessor run test section, where
the data being loaded into the test documents wasn't always being deep-copied,
and the assert was looking at getData instead of getFulldata (which wouldn't
be able to test metadata changes).

Change-Id: Ieb20ab3e7827bc7ff04148f147da6728eb1eb666
2013-02-14 17:27:27 -08:00
..
annotations Added support for passing data into annotation constructors 2013-01-28 11:01:52 -08:00
nodes Hybrid-ify MetaBlock/MetaInline 2013-01-31 15:00:00 -08:00
ve.dm.Annotation.js Added support for passing data into annotation constructors 2013-01-28 11:01:52 -08:00
ve.dm.AnnotationFactory.js Move matching code from AnnotationFactory to ModelRegistry 2013-01-22 15:51:37 -08:00
ve.dm.BranchNode.js Major Documentation Cleanup 2013-01-16 15:37:59 -08:00
ve.dm.Converter.js Change the HTML attribute prefix from html/ to html/0/ 2013-02-06 12:00:43 -08:00
ve.dm.Document.js (bug 45029) Transactions for metadata modification. 2013-02-14 17:27:27 -08:00
ve.dm.DocumentSlice.js ve.dm.DocumentSlice does not extend ve.Node 2013-02-08 14:11:11 -08:00
ve.dm.DocumentSynchronizer.js Automatically prune empty text nodes 2013-01-28 17:09:56 -08:00
ve.dm.js Move matching code from AnnotationFactory to ModelRegistry 2013-01-22 15:51:37 -08:00
ve.dm.LeafNode.js Convert node rules to static properties 2013-01-18 14:51:40 -08:00
ve.dm.ModelRegistry.js Fixed documentation warning 2013-01-30 12:52:03 -08:00
ve.dm.Node.js Specify (but do not implement) the context parameter to toDataElement() 2013-01-31 14:59:59 -08:00
ve.dm.NodeFactory.js Make defaultAttributes a static property as well 2013-01-18 14:51:40 -08:00
ve.dm.Surface.js Remove range.normalize (not needed), use range.isCollapsed more often 2013-01-16 15:38:07 -08:00
ve.dm.SurfaceFragment.js Added support for passing data into annotation constructors 2013-01-28 11:01:52 -08:00
ve.dm.Transaction.js (bug 45029) Transactions for metadata modification. 2013-02-14 17:27:27 -08:00
ve.dm.TransactionProcessor.js (bug 45029) Transactions for metadata modification. 2013-02-14 17:27:27 -08:00