| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 XMLDocumentWrappingImplementation extends DocumentWrappingImplementation | 5 class XMLDocumentWrappingImplementation extends DocumentWrappingImplementation |
| 6 implements XMLDocument { | 6 implements XMLDocument { |
| 7 // This really just wants to extend both DocumentWrappingImplementation and | 7 // This really just wants to extend both DocumentWrappingImplementation and |
| 8 // XMLElementWrappingImplementation, but since that's not possible we delegate | 8 // XMLElementWrappingImplementation, but since that's not possible we delegate |
| 9 // to the latter. | 9 // to the latter. |
| 10 XMLElement documentEl; | 10 XMLElement documentEl; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 void set manifest(String value) { | 111 void set manifest(String value) { |
| 112 throw new UnsupportedOperationException( | 112 throw new UnsupportedOperationException( |
| 113 "Manifest can't be set for XML documents."); | 113 "Manifest can't be set for XML documents."); |
| 114 } | 114 } |
| 115 | 115 |
| 116 Set<String> get classes() => documentEl.classes; | 116 Set<String> get classes() => documentEl.classes; |
| 117 | 117 |
| 118 ElementList get elements() => documentEl.elements; | 118 ElementList get elements() => documentEl.elements; |
| 119 | 119 |
| 120 // TODO: The type of value should be Collection<Element>. See http://b/5392897 | 120 void set elements(Collection<Element> value) { documentEl.elements = value; } |
| 121 void set elements(value) { documentEl.elements = value; } | |
| 122 | 121 |
| 123 String get outerHTML() => documentEl.outerHTML; | 122 String get outerHTML() => documentEl.outerHTML; |
| 124 | 123 |
| 125 String get innerHTML() => documentEl.innerHTML; | 124 String get innerHTML() => documentEl.innerHTML; |
| 126 | 125 |
| 127 void set innerHTML(String xml) { documentEl.innerHTML = xml; } | 126 void set innerHTML(String xml) { documentEl.innerHTML = xml; } |
| 128 | 127 |
| 129 String get contentEditable() => documentEl.contentEditable; | 128 String get contentEditable() => documentEl.contentEditable; |
| 130 | 129 |
| 131 void set contentEditable(String value) { documentEl.contentEditable = value; } | 130 void set contentEditable(String value) { documentEl.contentEditable = value; } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 161 void set webkitdropzone(String value) { documentEl.webkitdropzone = value; } | 160 void set webkitdropzone(String value) { documentEl.webkitdropzone = value; } |
| 162 | 161 |
| 163 String get lang() => documentEl.lang; | 162 String get lang() => documentEl.lang; |
| 164 | 163 |
| 165 void set lang(String value) { documentEl.lang = value; } | 164 void set lang(String value) { documentEl.lang = value; } |
| 166 | 165 |
| 167 String get dir() => documentEl.dir; | 166 String get dir() => documentEl.dir; |
| 168 | 167 |
| 169 void set dir(String value) { documentEl.dir = value; } | 168 void set dir(String value) { documentEl.dir = value; } |
| 170 } | 169 } |
| OLD | NEW |