mediawiki-extensions-Visual.../modules/ve/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
..
annotations Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
metaitems Add MW-specific meta items for categories and language links 2013-03-21 12:18:52 -07:00
nodes Fix MWImageNode dimensions and implement toDomElements 2013-03-29 12:51:43 +00:00
ve.dm.Annotation.js Change MetaNodes to MetaItems 2013-03-14 23:35:50 -07:00
ve.dm.AnnotationFactory.js Add MetaList 2013-03-15 15:03:10 -07:00
ve.dm.BranchNode.js Fix documentation to place @emits in the correct place 2013-03-25 21:06:05 +00:00
ve.dm.Converter.js Change MetaNodes to MetaItems 2013-03-14 23:35:50 -07:00
ve.dm.DataString.js UnicodeJS library to implement Unicode standards 2013-03-27 17:44:22 +00:00
ve.dm.Document.js UnicodeJS library to implement Unicode standards 2013-03-27 17:44:22 +00:00
ve.dm.DocumentSlice.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.DocumentSynchronizer.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.js Bump copyright notice year range to -2013 over -2012 2013-02-19 15:37:34 -08:00
ve.dm.LeafNode.js Use static.name once for ce and dm nodes 2013-03-07 17:19:39 -08:00
ve.dm.MetaItem.js Merge changes I4b62a310,I7c9f22a1 2013-03-26 14:31:44 +00:00
ve.dm.MetaItemFactory.js Remove more periods 2013-03-20 22:55:50 +00:00
ve.dm.MetaList.js Add insert and remove events to MetaList 2013-03-26 15:09:52 +00:00
ve.dm.ModelRegistry.js Change MetaNodes to MetaItems 2013-03-14 23:35:50 -07:00
ve.dm.Node.js Fix documentation to place @emits in the correct place 2013-03-25 21:06:05 +00:00
ve.dm.NodeFactory.js Remove more periods 2013-03-20 22:55:50 +00:00
ve.dm.Surface.js Merge changes I4b62a310,I7c9f22a1 2013-03-26 14:31:44 +00:00
ve.dm.SurfaceFragment.js UnicodeJS library to implement Unicode standards 2013-03-27 17:44:22 +00:00
ve.dm.Transaction.js Remove more periods 2013-03-20 22:55:50 +00:00
ve.dm.TransactionProcessor.js Move .commit()/.rollback() from TransactionProcessor to Document 2013-03-25 21:03:44 +00:00