mediawiki-extensions-Visual.../modules/ve/test/dm
Catrope 84e598953a Wrap inline elements properly
The HTML "1<br/>2" was being converted to a linmod that looked like
"<p>1</p><br></br><p>2</p>". This commit fixes the wrapping logic such
that the result is "<p>1<br></br>2</p>" instead. In general, inline
nodes (content nodes) should not interrupt the wrapping, but block nodes
should.

This creates a problem for alien nodes: normally, we determine whether an
alien node is a block alien or an inline alien based on context, but if
we're in wrapping mode we're unsure of the context. We can't tell the
difference between "1<tt>Foo</tt>2" (should be wrapped as one, because
tt is inline) and "1<figure></figure>2" (1 and 2 should be wrapped
separately, because figure is block) using context alone, so in these
cases (and ONLY in these cases) we look up whether the HTML tag in
question is an inline tag or a block tag and use that to decide.

Change-Id: I75e7f3da387dd401d9b93e09a21751951eccbb83
2012-10-17 13:50:29 -07: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 Manage annotations in ve.AnnotationSet object 2012-09-06 14:39:38 -07:00
ve.dm.Document.test.js New annotation API: update tests 2012-10-12 15:07:28 -07:00
ve.dm.DocumentSynchronizer.test.js There's no such thing as ghosts, just sneaky array references 2012-08-17 10:37:28 -07:00
ve.dm.example.js Wrap inline elements properly 2012-10-17 13:50:29 -07: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 Reversed the default value of autoSelect in surface fragments 2012-10-12 17:34:15 -07:00
ve.dm.Transaction.test.js New annotation API: update tests 2012-10-12 15:07:28 -07:00
ve.dm.TransactionProcessor.test.js New annotation API: update tests 2012-10-12 15:07:28 -07:00