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 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. | 5 // TODO(jacobr): use Lists.dart to remove some of the duplicated functionality. |
6 class _ChildrenElementList implements ElementList { | 6 class _ChildrenElementList implements ElementList { |
7 // Raw Element. | 7 // Raw Element. |
8 final _element; | 8 final _element; |
9 final _childElements; | 9 final _childElements; |
10 | 10 |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); | 502 final _START_TAG_REGEXP = const RegExp('<(\\w+)'); |
503 | 503 |
504 /** @domName Element, HTMLElement */ | 504 /** @domName Element, HTMLElement */ |
505 class ElementWrappingImplementation extends NodeWrappingImplementation implement
s Element { | 505 class ElementWrappingImplementation extends NodeWrappingImplementation implement
s Element { |
506 | 506 |
507 static final _CUSTOM_PARENT_TAG_MAP = const { | 507 static final _CUSTOM_PARENT_TAG_MAP = const { |
508 'body' : 'html', | 508 'body' : 'html', |
509 'head' : 'html', | 509 'head' : 'html', |
510 'caption' : 'table', | 510 'caption' : 'table', |
511 'td': 'tr', | 511 'td': 'tr', |
512 'tbody': 'table', | |
513 'colgroup': 'table', | 512 'colgroup': 'table', |
514 'col' : 'colgroup', | 513 'col' : 'colgroup', |
515 'tr' : 'tbody', | 514 'tr' : 'tbody', |
516 'tbody' : 'table', | 515 'tbody' : 'table', |
517 'tfoot' : 'table', | 516 'tfoot' : 'table', |
518 'thead' : 'table', | 517 'thead' : 'table', |
519 'track' : 'audio', | 518 'track' : 'audio', |
520 }; | 519 }; |
521 | 520 |
522 /** @domName Document.createElement */ | 521 /** @domName Document.createElement */ |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 | 781 |
783 ElementEvents get on() { | 782 ElementEvents get on() { |
784 if (_on === null) { | 783 if (_on === null) { |
785 _on = new ElementEventsImplementation._wrap(_ptr); | 784 _on = new ElementEventsImplementation._wrap(_ptr); |
786 } | 785 } |
787 return _on; | 786 return _on; |
788 } | 787 } |
789 | 788 |
790 Element clone(bool deep) => super.clone(deep); | 789 Element clone(bool deep) => super.clone(deep); |
791 } | 790 } |
OLD | NEW |