mediawiki-extensions-Visual.../modules/ve/test
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
..
ce After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
dm Strip generated <p> tags in dataToDom 2012-08-16 16:09:28 -07:00
image.png Move test files 2012-07-25 14:35:49 -07:00
index.html Merge "Add ve.dm.BreakNode to represent <br>" 2012-08-09 21:50:41 +00:00
ve.BranchNode.test.js After much research on error objects, native = good, custom = bad 2012-08-08 10:48:53 -07:00
ve.Document.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.example.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Factory.test.js Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00
ve.LeafNode.test.js Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ve.Node.test.js Kranitor #1: On-boarding 2012-07-27 14:40:00 -07:00
ve.qunit.js Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00