mediawiki-extensions-Visual.../modules/ve/test/dm
Catrope 7319038ed6 Strip generated <p> tags in dataToDom
domToData wraps bare content in paragraph elements, which were then
converted to <p> tags by domToData. With this fix, HTML with "missing"
<p> tags actually round-trips through the editor correctly now, rather
than having <p> tags added wherever VE believes they should exist.

* Mark generated paragraph elements with .internal.generated = 'wrapper'
** This signifies the wrapper was generated but its contents were not,
   so the right thing to do when converting back to HTML is to remove
   the wrapper and keep the contents. We might want to use other values
   of generated in the future.
* Unwrap nodes with generated=wrapper when converting to HTML

Tests:
* Add 'generated': 'wrapper' as appropriate. Only affects 1 test
* Remove 'normalizedHtml' for this test because it is no longer needed
** Need to keep 'normalizedHtml' for now because we normalize hrefs
* Eventually the main example should test bare content, but that
  requires touching a lot of stuff. The main example could use some
  beefing up anyway.

Change-Id: I277ad5fe3f64e07c1bbf49007d6bbaecc90b7466
2012-08-16 16:09:28 -07:00
..
nodes Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.BranchNode.test.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.dm.Converter.test.js Strip and preserve inner leading&trailing whitespace in the linear model 2012-08-10 17:23:53 -07:00
ve.dm.Document.test.js Clean up a few commas and some indentation 2012-08-10 16:49:14 -07:00
ve.dm.DocumentSynchronizer.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.example.js Strip generated <p> tags in dataToDom 2012-08-16 16:09:28 -07:00
ve.dm.LeafNode.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.dm.Node.test.js After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
ve.dm.NodeFactory.test.js After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
ve.dm.Surface.test.js Clean up: Single quotes 2012-08-07 07:02:01 +02:00
ve.dm.Transaction.test.js Make use of new jshint options 2012-08-10 02:50:30 +02:00
ve.dm.TransactionProcessor.test.js Make use of new jshint options 2012-08-10 02:50:30 +02:00