mediawiki-extensions-Visual.../modules/ve/dm/nodes
Roan Kattouw 92ffa0739d Fix reserialization of mw-data.body.html
This bug caused all references containing complex content (e.g. links
or templates) to be dirty-DOMed and reformatted by Parsoid.

ve.dm.MWReferenceNode.js:
* Parse the original body.html and check if it's semantically equal to
  the new value. If so, don't set it.

ve.dm.Converter.js:
* .normalize() the converter output to remove empty text nodes and
  merge adjacent text nodes

ve.dm.example.js:
* Update reused reference test to have body.html absent, not empty
* Add a link to one of the reference tests so this bug is triggered
** The link's attributes are ordered specifically so that toDomElements
   will reorder them, at least in Chrome (may behave differently in
   other browsers)
** This test fails without this fix in place

Change-Id: Idc091a14422fbb117a3d06fc6bb9497768086fc3
2013-06-25 19:24:18 -07:00
..
ve.dm.AlienNode.js Clean up static stuff in dm.GeneratedContentNode 2013-06-24 21:50:38 +00:00
ve.dm.BreakNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.CenterNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.DefinitionListItemNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.DefinitionListNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.DivNode.js Add support for <div>s as user-editable blocks 2013-04-30 18:43:41 -07:00
ve.dm.DocumentNode.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.dm.GeneratedContentNode.js Clean up static stuff in dm.GeneratedContentNode 2013-06-24 21:50:38 +00:00
ve.dm.HeadingNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.ImageNode.js Image node refactor 2013-04-10 14:56:08 -07:00
ve.dm.InternalItemNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.dm.InternalListNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.dm.ListItemNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.ListNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.MWBlockImageNode.js Proper handling for block level frameless images 2013-06-24 17:47:03 -07:00
ve.dm.MWEntityNode.js Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
ve.dm.MWHeadingNode.js Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
ve.dm.MWImageCaptionNode.js Add class mw-figcaption to figcaption tag inside mwimage 2013-05-28 23:21:59 +00:00
ve.dm.MWInlineImageNode.js (bug 49837) Handle correctly figure tags with typeof="mw:Image" 2013-06-19 21:15:30 +00:00
ve.dm.MWPreformattedNode.js Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
ve.dm.MWReferenceListNode.js Store original DOM elements of transclusions 2013-06-24 15:50:52 +00:00
ve.dm.MWReferenceNode.js Fix reserialization of mw-data.body.html 2013-06-25 19:24:18 -07:00
ve.dm.MWTransclusionNode.js Clean up static stuff in dm.GeneratedContentNode 2013-06-24 21:50:38 +00:00
ve.dm.ParagraphNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.PreformattedNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.TableCaptionNode.js Add TableCaptionNode 2013-04-26 14:09:54 -07:00
ve.dm.TableCellNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.TableNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.TableRowNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.TableSectionNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.TextNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00