mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 02:51:50 +00:00
1261a5f471
This is caused by a limitation of surface fragments in that they always expand to include insertions touching them. In this case we build surface fragments contain adjacent listItems, so when the first listItem is de-listed a transaction is first created to split the list. This insertion of ('/list', 'list') is adjacent to the second surface fragment and so becomes part of that fragment. This then causes the wrong node to be passed to unindentListItem. The workaround is to use the inner range of the listItem, not the outer range. Bug: 48390 Change-Id: I7418910412d292ef4953e294a97f66e48d6f776f |
||
---|---|---|
.. | ||
actions | ||
ce | ||
dm | ||
init | ||
example.png | ||
index.php | ||
ve.BranchNode.test.js | ||
ve.Document.test.js | ||
ve.example.js | ||
ve.Factory.test.js | ||
ve.LeafNode.test.js | ||
ve.Node.test.js | ||
ve.qunit.js | ||
ve.Range.test.js | ||
ve.test.js | ||
ve.Trigger.test.js |