mediawiki-extensions-Visual.../modules/ve/dm
Roan Kattouw 95733390dc Use indexes in .children, not .childNodes, for attribute preservation
The difference is that .children excludes non-element nodes (text nodes
and comment nodes). These can't have attributes anyway, so there's
nothing lost by skipping them, and this way we avoid bugs where a
text node split causes the indexes to be off.

(Text node splits are probably due to an interaction between whitespace
preservation and paragraph unwrapping, and aren't necessarily bad. We
just shouldn't rely on indexes into .childNodes)

Change-Id: I905a50e1c299ebafcbd4eaa0f938b06a1b5849ff
2013-06-17 15:41:22 -07:00
..
annotations Consistent use of mw in HTML classes, and data element and annotation types 2013-05-28 13:49:56 +01:00
lineardata Fix getAnnotationIndexesFromOffset() to always return an array 2013-05-25 13:41:32 +02:00
metaitems Store alien meta items' dom nodes only 2013-06-12 16:37:37 +01:00
models Merge "Fix logical conflicts from the transclusion merge." 2013-06-17 18:14:29 +00:00
nodes Reference name and group editing 2013-06-14 15:29:56 -07:00
ve.dm.Annotation.js Configurable insertion annotations 2013-05-06 22:57:35 +00:00
ve.dm.AnnotationFactory.js
ve.dm.AnnotationSet.js Compare objects/arrays fix 2013-05-29 00:39:04 +01:00
ve.dm.BranchNode.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.dm.Converter.js Use indexes in .children, not .childNodes, for attribute preservation 2013-06-17 15:41:22 -07:00
ve.dm.DataString.js Code style fixes 2013-05-06 12:36:52 +01:00
ve.dm.Document.js Store DM nodes in InternalList 2013-06-03 22:10:07 +01:00
ve.dm.DocumentSlice.js
ve.dm.DocumentSynchronizer.js
ve.dm.IndexValueStore.js Preserve location of reference body within key 2013-06-10 02:54:26 +00:00
ve.dm.InternalList.js Build the internalList linmod even if it's empty 2013-06-17 13:23:20 +01:00
ve.dm.js
ve.dm.LeafNode.js
ve.dm.LinearData.js
ve.dm.MetaItem.js Fieldsets and default sort keys 2013-05-10 16:46:08 -07:00
ve.dm.MetaItemFactory.js Make .static.storeHtmlAttributes more versatile 2013-05-07 14:45:26 -07:00
ve.dm.MetaList.js Fix breaking getLength() call 2013-05-10 17:02:07 -07:00
ve.dm.Model.js The Great ve.ui.Surface refactor of 2013 2013-05-24 14:01:02 +02:00
ve.dm.ModelRegistry.js Force about grouping for multi-element about groups 2013-05-05 00:07:29 -07:00
ve.dm.Node.js Merging and remapping of IVStores and InternalLists 2013-05-25 11:33:35 +00:00
ve.dm.NodeFactory.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.dm.Surface.js Handle deletion programmatically always 2013-06-14 17:05:28 -07:00
ve.dm.SurfaceFragment.js Reference name and group editing 2013-06-14 15:29:56 -07:00
ve.dm.Transaction.js Reference name and group editing 2013-06-14 15:29:56 -07:00
ve.dm.TransactionProcessor.js Kill getOffsetFromNode() with fire 2013-05-09 17:26:22 -07:00