mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 06:46:26 +00:00
95733390dc
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 |
||
---|---|---|
.. | ||
annotations | ||
lineardata | ||
metaitems | ||
models | ||
nodes | ||
ve.dm.Annotation.js | ||
ve.dm.AnnotationFactory.js | ||
ve.dm.AnnotationSet.js | ||
ve.dm.BranchNode.js | ||
ve.dm.Converter.js | ||
ve.dm.DataString.js | ||
ve.dm.Document.js | ||
ve.dm.DocumentSlice.js | ||
ve.dm.DocumentSynchronizer.js | ||
ve.dm.IndexValueStore.js | ||
ve.dm.InternalList.js | ||
ve.dm.js | ||
ve.dm.LeafNode.js | ||
ve.dm.LinearData.js | ||
ve.dm.MetaItem.js | ||
ve.dm.MetaItemFactory.js | ||
ve.dm.MetaList.js | ||
ve.dm.Model.js | ||
ve.dm.ModelRegistry.js | ||
ve.dm.Node.js | ||
ve.dm.NodeFactory.js | ||
ve.dm.Surface.js | ||
ve.dm.SurfaceFragment.js | ||
ve.dm.Transaction.js | ||
ve.dm.TransactionProcessor.js |