mediawiki-extensions-Visual.../modules/ve/dm/nodes
Ed Sanders cddb3f1b39 AlienNode stores original DOM elements instead of HTML
As jQuery hash problems in some cases converting HTML, it is
easier just to store the original DOM elements.

The bulk of this commit is fixing the tests as although we have an
assertion for comparing DOM elements, we don't have one for comparing
objects or arrays which may contain DOM elements.

ve.js
* copyObject & copyArray fixed to run cloneNode(true) on any item
  of type Node.
* Added callback function so an object/array can be copied with
  modifications.

ve.qunit.js
* Added deepEqualWithDomElements: Using the new copyObect/Array
  callback, we can copy the incoming object and convert any nodes
  to node summaries, then just run the normal deep equal comparison.

ve.dm.AlienNodes.js
* Instead of storing HMTL we store cloned DOM elements which we can
  send straight back to the converter without any processing.

ve.dm.example.js
* Updated tests to expect DOM elements instead of HTML.

ve.dm.Converter.test.js
* Updated tests to use deepEqualWithDomElements

Bug: 47737
Change-Id: I3df8f49b170c31da9610129d53cf8cb65dd5d5f8
2013-04-27 21:04:58 +00:00
..
ve.dm.AlienNode.js AlienNode stores original DOM elements instead of HTML 2013-04-27 21:04:58 +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.DocumentNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.dm.GeneratedContentNode.js Create GeneratedContentNode which can store rendered HTML in IV store 2013-04-10 19:34:19 +01: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 Initial support for MWBlockImageNode - thumb images with captions :-) 2013-04-25 21:49:32 +00:00
ve.dm.MWEntityNode.js Actually use the doc parameter in toDomElements() 2013-04-09 23:48:03 +00:00
ve.dm.MWHeadingNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.dm.MWImageCaptionNode.js Initial support for MWBlockImageNode - thumb images with captions :-) 2013-04-25 21:49:32 +00:00
ve.dm.MWInlineImageNode.js Rename MWImageNode to MWInlineImageNode (get ready for adding MWBlockImageNode soon) 2013-04-24 16:49:07 -07:00
ve.dm.MWPreformattedNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.dm.MWReferenceListNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.dm.MWReferenceNode.js Add data model support for MediaWiki references 2013-04-23 10:17:42 +01:00
ve.dm.MWTemplateNode.js MWTemplateNode should serialise original HTML if unchanged 2013-04-22 20:44:21 +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