mediawiki-extensions-Visual.../modules/ve/test
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
..
ce Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
dm Add basic support for about groups 2012-11-07 18:13:50 -08:00
image.png
index.html Refactored commands into a registry 2012-11-07 15:52:30 -08:00
ve.BranchNode.test.js Optimize UI tool state updates. 2012-09-19 11:16:10 -07:00
ve.Command.test.js Replaced command factory with new command class 2012-11-07 15:47:03 -08:00
ve.Document.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.example.js Add parentOuterRange to selectNodes() output 2012-10-19 15:28:26 -07:00
ve.Factory.test.js Added multiple name registration to ve.Factory 2012-10-12 17:43:04 -07:00
ve.LeafNode.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.Node.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.qunit.js Test: Enforce # of expected assertions. 2012-10-25 22:06:07 +02:00
ve.Range.test.js Test: Enforce # of expected assertions. 2012-10-25 22:06:07 +02:00
ve.test.js Fix ve.batchSplice() to behave in line with docs 2012-10-30 10:05:49 -07:00