DescriptionPlease refer to https://code.google.com/p/dart/issues/detail?id=23418 for the bug reportincluding a WebStorm project which demonstrates the problem.
This proposal includes a fix to ensure that indices passed to the public functions defined in class FilteredElementList of the dart:html package consistently refer to element indices (not element indices sometimes, and node indices other times). Without this change, it is not possible to reliably insert elements relative to other elements. This can be problematic as the order of HTML elements must be guaranteed to ensure elements appear where expected in a normal page flow.
This proposal also address the TODO in file sdk/lib/html/html_common/filtered_element_list.dart to avoid excessively creating/allocating a filtered list of elements from nodes whenever calling [], every, any, length, etc. The implementation is less concise but should result in much reduced memory allocation and speed improvements.
R=alanknight@google.com
Committed: https://github.com/dart-lang/sdk/commit/3b125d3bc9cc4d0f6f6a3ad2e0f6c8367128d8b8
Patch Set 1 #
Total comments: 17
Patch Set 2 : Test cases and patch for Dart issue 23418 #
Messages
Total messages: 7 (1 generated)
|