mediawiki-extensions-Visual.../modules/ve/test
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
..
ce Revert "No longer create zero-length text nodes" 2012-10-12 18:04:15 +00:00
dm Wrap inline elements properly 2012-10-17 13:50:29 -07:00
image.png Losslessly compress png images 2012-08-18 23:12:44 +01:00
index.html Fixing location of ve.ce.CenterNode.js and adding comma between variable declarations 2012-10-17 13:18:57 -07:00
ve.BranchNode.test.js Optimize UI tool state updates. 2012-09-19 11:16:10 -07:00
ve.Document.test.js Fix constructor names; remove redundant hasOwnProperty. 2012-10-08 06:15:20 +02:00
ve.example.js Created QUnit tests for ve.Document.selectNodes method (mode "branches") 2012-10-04 15:24:02 -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 Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00
ve.Range.test.js Create method ve.Range.isCollapsed() and added some tests for ve.Range class. 2012-09-28 13:32:26 -07:00
ve.test.js Merge "Add ve.getProp()" 2012-10-11 18:26:31 +00:00