| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 class FilteredElementList implements ElementList { | 5 class FilteredElementList implements ElementList { |
| 6 final Node _node; | 6 final Node _node; |
| 7 final NodeList _childNodes; | 7 final NodeList _childNodes; |
| 8 | 8 |
| 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; | 9 FilteredElementList(Node node): _childNodes = node.nodes, _node = node; |
| 10 | 10 |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 bool get isContentEditable() => false; | 247 bool get isContentEditable() => false; |
| 248 bool get draggable() => false; | 248 bool get draggable() => false; |
| 249 bool get hidden() => false; | 249 bool get hidden() => false; |
| 250 bool get spellcheck() => false; | 250 bool get spellcheck() => false; |
| 251 int get tabIndex() => -1; | 251 int get tabIndex() => -1; |
| 252 String get id() => ""; | 252 String get id() => ""; |
| 253 String get title() => ""; | 253 String get title() => ""; |
| 254 String get tagName() => ""; | 254 String get tagName() => ""; |
| 255 String get webkitdropzone() => ""; | 255 String get webkitdropzone() => ""; |
| 256 Element get firstElementChild() => elements.first(); | 256 Element get firstElementChild() => elements.first(); |
| 257 Element get lastElementChild() => elements.last; | 257 Element get lastElementChild() => elements.last(); |
| 258 Element get nextElementSibling() => null; | 258 Element get nextElementSibling() => null; |
| 259 Element get previousElementSibling() => null; | 259 Element get previousElementSibling() => null; |
| 260 Element get offsetParent() => null; | 260 Element get offsetParent() => null; |
| 261 Element get parent() => null; | 261 Element get parent() => null; |
| 262 Map<String, String> get attributes() => const {}; | 262 Map<String, String> get attributes() => const {}; |
| 263 // Issue 174: this should be a const set. | 263 // Issue 174: this should be a const set. |
| 264 Set<String> get classes() => new Set<String>(); | 264 Set<String> get classes() => new Set<String>(); |
| 265 Map<String, String> get dataAttributes() => const {}; | 265 Map<String, String> get dataAttributes() => const {}; |
| 266 CSSStyleDeclaration get style() => new EmptyStyleDeclaration(); | 266 CSSStyleDeclaration get style() => new EmptyStyleDeclaration(); |
| 267 ClientRect getBoundingClientRect() => new EmptyClientRect(); | 267 ClientRect getBoundingClientRect() => new EmptyClientRect(); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 void set title(String value) { | 356 void set title(String value) { |
| 357 throw new UnsupportedOperationException( | 357 throw new UnsupportedOperationException( |
| 358 "Title can't be set for document fragments."); | 358 "Title can't be set for document fragments."); |
| 359 } | 359 } |
| 360 | 360 |
| 361 void set webkitdropzone(String value) { | 361 void set webkitdropzone(String value) { |
| 362 throw new UnsupportedOperationException( | 362 throw new UnsupportedOperationException( |
| 363 "WebKit drop zone can't be set for document fragments."); | 363 "WebKit drop zone can't be set for document fragments."); |
| 364 } | 364 } |
| 365 } | 365 } |
| OLD | NEW |