mediawiki-extensions-Visual.../modules/ve/test/dm
Ed Sanders 5b168bdbad Fix MWImageNode dimensions and implement toDomElements
Using element.height was returning 0 if the attribute was empty
when in fact what we mean to store is null (i.e. auto height).

This takes care of the writing of attributes in CE as jQuery
ignores an attribute-set command if the value is null.

Also in this commit I've implemented a basic toDomElements
that outputs the original HTML (code copied from AlienNode).
This stops the code from throwing an exception but will
eventually need to be rewritten to rebuild the HTML from
the attributes stored in the DM.

Bug: 56336
Change-Id: I297a1d0a07e9ebf9d0110fb1cdf266f8415f25b7
2013-03-29 12:51:43 +00:00
..
nodes Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.BranchNode.test.js Correct name of can(Node)HaveGrandchildren functions 2013-03-13 23:25:33 +00:00
ve.dm.Converter.test.js Fix MWImageNode dimensions and implement toDomElements 2013-03-29 12:51:43 +00:00
ve.dm.Document.test.js UnicodeJS library to implement Unicode standards 2013-03-27 17:44:22 +00:00
ve.dm.DocumentSynchronizer.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.example.js Fix MWImageNode dimensions and implement toDomElements 2013-03-29 12:51:43 +00:00
ve.dm.LeafNode.test.js Correct name of can(Node)HaveGrandchildren functions 2013-03-13 23:25:33 +00:00
ve.dm.MetaList.test.js Add mutators in MetaList 2013-03-25 21:12:20 +00:00
ve.dm.ModelRegistry.test.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.dm.Node.test.js Correct name of can(Node)HaveGrandchildren functions 2013-03-13 23:25:33 +00:00
ve.dm.NodeFactory.test.js Correct name of can(Node)HaveGrandchildren functions 2013-03-13 23:25:33 +00:00
ve.dm.Surface.test.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.SurfaceFragment.test.js UnicodeJS library to implement Unicode standards 2013-03-27 17:44:22 +00:00
ve.dm.Transaction.test.js Change MetaNodes to MetaItems 2013-03-14 23:35:50 -07:00
ve.dm.TransactionProcessor.test.js Move .commit()/.rollback() from TransactionProcessor to Document 2013-03-25 21:03:44 +00:00