mediawiki-extensions-Visual.../modules/ve/dm
Catrope 662880605c (bug 42119) Handle alienation in wrapping mode properly
When alienating in wrapping mode, we need to look at the type of tag to
decide whether to create a wrapped alienInline, or to interrupt the
paragraph for an alienBlock.

This was being done just fine for the general alienation case
(unrecognized tag), but not for the special cases (mw:unrecognized,
about groups).

* Centralize the logic for ending a wrapper in stopWrapping()
* Move the wrapping-contingent block/inline detection logic into
  createAlien()
* Simplify the terrible if statement to decide whether a future decision
  requires us to stop wrapping. Instead, detect the cases in each code
  path separately and call stopWrapping() as appropriate
* Add tests

Change-Id: I4054584ae05e7d5daa71edead3e6a6588cf5d3bb
2012-11-21 13:42:13 -08:00
..
annotations Whitespace and comment cleanup for dm annotation classes 2012-10-17 12:35:28 -07:00
nodes (bug 42218) Add MWEntityNode 2012-11-20 16:19:55 -08:00
ve.dm.Annotation.js Fix annotation object creation in SurfaceFragment 2012-10-24 16:47:04 -07:00
ve.dm.AnnotationFactory.js Standards: Fix global variables and pass JSHint. 2012-10-23 00:53:48 +02:00
ve.dm.BranchNode.js Remove 'internal' property from DM nodes 2012-10-24 16:47:14 -07:00
ve.dm.Converter.js (bug 42119) Handle alienation in wrapping mode properly 2012-11-21 13:42:13 -08:00
ve.dm.Document.js Fixing Pre-Annotations 2012-11-19 17:09:08 -08:00
ve.dm.DocumentSynchronizer.js DocumentSynchronizer fix and cleanup 2012-10-25 11:02:58 -07:00
ve.dm.js New annotation API: Annotation and AnnotationFactory classes 2012-10-12 15:07:02 -07:00
ve.dm.LeafNode.js Remove 'internal' property from DM nodes 2012-10-24 16:47:14 -07:00
ve.dm.Node.js Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
ve.dm.NodeFactory.js Flag pre nodes as having significant whitespace 2012-11-07 12:10:58 -08:00
ve.dm.Surface.js Fixed inspector behavior 2012-11-21 12:01:14 -08:00
ve.dm.SurfaceFragment.js Fixed inspector behavior 2012-11-21 12:01:14 -08:00
ve.dm.Transaction.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00
ve.dm.TransactionProcessor.js Add change marking for Parsoid's benefit 2012-11-06 10:11:11 -08:00