mediawiki-extensions-Visual.../modules/ve
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
..
ce Code style fix: @return -> @returns 2013-06-17 11:50:24 +01:00
dm Use indexes in .children, not .childNodes, for attribute preservation 2013-06-17 15:41:22 -07:00
init Split test: instrument edit events for standard editor interface 2013-06-17 14:14:57 -07:00
test Fix selectNodes() bug with empty non-content branch nodes 2013-06-17 19:09:12 +00:00
ui Merge "grunt: Also delete QUnit temp files when test fails" 2013-06-17 18:29:21 +00:00
ve.BranchNode.js
ve.debug.js ve.debug: Document why we use global Function#apply+Function#call instead of method.apply 2013-05-30 13:03:14 +01:00
ve.Document.js Fix selectNodes() bug with empty non-content branch nodes 2013-06-17 19:09:12 +00:00
ve.Element.js Code style fix: @return -> @returns 2013-06-17 11:50:24 +01:00
ve.EventEmitter.js oojs: Integrate with OOJS v1.0.0 2013-06-06 17:29:55 +02:00
ve.Factory.js
ve.js Code style fix: @return -> @returns 2013-06-17 11:50:24 +01:00
ve.LeafNode.js
ve.NamedClassFactory.js
ve.Node.js ve.ce.Document: Introduce getRelativeRange method 2013-06-05 13:10:38 +01:00
ve.Range.js
ve.Registry.js