mediawiki-extensions-Visual.../modules/ve/test/dm
Catrope d4ea93b872 Add basic support for about groups
About groups are HTML structures like the following:
<div about="#mwt1">....</div>
<span about="#mwt1">...</span>
<div about="#mwt1">...</div>
When about groups are alienated, they are now merged into one alien
node, rather than producing a separate alien node for each sibling.

This is very basic about group handling, because it only works for
groups of directly adjacent siblings (text nodes are permitted in
between, but nothing else) assumes all about groups are aliens (which
is currently true).

* Before processing an element in the DOM->data converter, perform about
  grouping on its children. This temporarily wraps about groups in
  <div data-ve-aboutgroup="value of about attribute">
* Extended createAlien() to handle single nodes as well as wrappers
  holding multiple nodes.
* In the data->DOM converter, temporarily wrap multi-node aliens in
  <div data-ve-multi-child-alien-wrapper="true"> . This makes the rest
  of the algorithm easier.

Change-Id: I2df5f62bc222b570fc11a89fe43d353f8363ead8
2012-11-07 18:13:50 -08:00
..
nodes Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.AnnotationFactory.test.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.BranchNode.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Converter.test.js Add basic support for about groups 2012-11-07 18:13:50 -08:00
ve.dm.Document.test.js Introduce meta-linmod 2012-11-02 19:06:49 -07:00
ve.dm.DocumentSynchronizer.test.js Introduce meta-linmod 2012-11-02 19:06:49 -07:00
ve.dm.example.js Add basic support for about groups 2012-11-07 18:13:50 -08:00
ve.dm.LeafNode.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Node.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.NodeFactory.test.js Rename ve_foo_bar back to VeFooBar per discussion 2012-09-06 16:15:55 -07:00
ve.dm.Surface.test.js New annotation API: update tests 2012-10-12 15:07:28 -07:00
ve.dm.SurfaceFragment.test.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00
ve.dm.Transaction.test.js Test: Enforce # of expected assertions. 2012-10-25 22:06:07 +02:00
ve.dm.TransactionProcessor.test.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00