mediawiki-extensions-Visual.../modules/ve
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 Added support for apex skin 2012-08-15 16:35:52 -07:00
dm Strip generated <p> tags in dataToDom 2012-08-16 16:09:28 -07:00
init Added support for apex skin 2012-08-15 16:35:52 -07:00
test Strip generated <p> tags in dataToDom 2012-08-16 16:09:28 -07:00
ui Recognize ExtLink/URL and ExtLink/Numbered in LinkInspector 2012-08-13 18:03:34 -07:00
ve.BranchNode.js Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ve.debug.js Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ve.Document.js This should never happen, but if it does, lets make sure we know 2012-08-08 15:17:45 -07:00
ve.EventEmitter.js Refactor ve.js utilities and improve documentation 2012-08-12 20:32:45 +02:00
ve.Factory.js Rename fringeWhitespace to internal 2012-08-16 15:14:01 -07:00
ve.js Added key-sorting to make hashes referentially transparent 2012-08-15 11:14:44 -07:00
ve.LeafNode.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Node.js Make use of new jshint options 2012-08-10 02:50:30 +02:00
ve.Position.js Puttin' em white-spacers where they aught'a be 2012-08-06 18:52:19 -07:00
ve.Range.js Added basic ve.dm.SurfaceFragment class 2012-08-09 16:18:13 -07:00
ve.Surface.js Cleanup - all jshint conditions are now met 2012-08-03 18:56:04 -07:00