Description
This issue was originally filed by greg.lowe...@gmail.com
Element.children.insertAll() fails with 'Unsupported operation: Cannot resize element lists'. See the example program below.
This happens because ListMixin.insertAll() increases the length via the List.length setter which is not supported by ChildElementList.
However it should be possible for the ChildElementList to provide it's own implementation of insertAll() which works as expected.
import 'dart:html';
main() {
var el = new Element.div();
document.body.children.add(el);
el.children.addAll([
new Element.div()..text = 'a',
new Element.div()..text = 'b',
new Element.div()..text = 'c']);
el.children.insert(2, new Element.div()..text = '1');
el.children.insertAll(2, [new Element.div()..text = '1', new Element.div()..text = '2']);
}