OLD | NEW |
1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
2 /// | 2 /// |
3 /// For examples, see | 3 /// For examples, see |
4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
5 /// on Github. | 5 /// on Github. |
6 library dart.dom.html; | 6 library dart.dom.html; |
7 | 7 |
8 import 'dart:async'; | 8 import 'dart:async'; |
9 import 'dart:collection'; | 9 import 'dart:collection'; |
10 import 'dart:_collection-dev' hide Symbol, deprecated; | 10 import 'dart:_collection-dev' hide Symbol, deprecated; |
(...skipping 25725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
25736 } | 25736 } |
25737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25737 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
25738 // for details. All rights reserved. Use of this source code is governed by a | 25738 // for details. All rights reserved. Use of this source code is governed by a |
25739 // BSD-style license that can be found in the LICENSE file. | 25739 // BSD-style license that can be found in the LICENSE file. |
25740 | 25740 |
25741 | 25741 |
25742 @DocsEditable() | 25742 @DocsEditable() |
25743 @DomName('NamedNodeMap') | 25743 @DomName('NamedNodeMap') |
25744 // http://dom.spec.whatwg.org/#namednodemap | 25744 // http://dom.spec.whatwg.org/#namednodemap |
25745 @deprecated // deprecated | 25745 @deprecated // deprecated |
25746 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
<Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { | 25746 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
<Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap,Mo
zNamedAttrMap" { |
25747 | 25747 |
25748 @DomName('NamedNodeMap.length') | 25748 @DomName('NamedNodeMap.length') |
25749 @DocsEditable() | 25749 @DocsEditable() |
25750 int get length => JS("int", "#.length", this); | 25750 int get length => JS("int", "#.length", this); |
25751 | 25751 |
25752 Node operator[](int index) { | 25752 Node operator[](int index) { |
25753 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25753 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
25754 index, index, length)) | 25754 index, index, length)) |
25755 throw new RangeError.range(index, 0, length); | 25755 throw new RangeError.range(index, 0, length); |
25756 return JS("Node", "#[#]", this, index); | 25756 return JS("Node", "#[#]", this, index); |
(...skipping 3680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
29437 _position = nextPosition; | 29437 _position = nextPosition; |
29438 return true; | 29438 return true; |
29439 } | 29439 } |
29440 _current = null; | 29440 _current = null; |
29441 _position = _array.length; | 29441 _position = _array.length; |
29442 return false; | 29442 return false; |
29443 } | 29443 } |
29444 | 29444 |
29445 T get current => _current; | 29445 T get current => _current; |
29446 } | 29446 } |
OLD | NEW |