| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 /** | 5 /** |
| 6 * Custom Elements let authors define their own elements. Authors associate code | 6 * Custom Elements let authors define their own elements. Authors associate code |
| 7 * with custom tag names, and then use those custom tag names as they would any | 7 * with custom tag names, and then use those custom tag names as they would any |
| 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> | 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> |
| 9 * for more information. | 9 * for more information. |
| 10 */ | 10 */ |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 | 306 |
| 307 void set innerHTML(String v) { | 307 void set innerHTML(String v) { |
| 308 host.innerHtml = v; | 308 host.innerHtml = v; |
| 309 } | 309 } |
| 310 | 310 |
| 311 String get innerHtml => host.innerHtml; | 311 String get innerHtml => host.innerHtml; |
| 312 void set innerHtml(String v) { | 312 void set innerHtml(String v) { |
| 313 host.innerHtml = v; | 313 host.innerHtml = v; |
| 314 } | 314 } |
| 315 | 315 |
| 316 void setInnerHtml(String html, |
| 317 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { |
| 318 host.setInnerHtml(html, validator: validator, treeSanitizer: treeSanitizer); |
| 319 } |
| 320 |
| 321 void set unsafeInnerHtml(String html) { |
| 322 host.unsafeInnerHtml = html; |
| 323 } |
| 324 |
| 325 DocumentFragment createFragment(String html, |
| 326 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) => |
| 327 host.createFragment(html, |
| 328 validator: validator, treeSanitizer: treeSanitizer); |
| 329 |
| 316 InputMethodContext get inputMethodContext => host.inputMethodContext; | 330 InputMethodContext get inputMethodContext => host.inputMethodContext; |
| 317 | 331 |
| 318 bool get isContentEditable => host.isContentEditable; | 332 bool get isContentEditable => host.isContentEditable; |
| 319 | 333 |
| 320 String get lang => host.lang; | 334 String get lang => host.lang; |
| 321 set lang(String v) { host.lang = v; } | 335 set lang(String v) { host.lang = v; } |
| 322 | 336 |
| 323 String get outerHtml => host.outerHtml; | 337 String get outerHtml => host.outerHtml; |
| 324 | 338 |
| 325 bool get spellcheck => host.spellcheck; | 339 bool get spellcheck => host.spellcheck; |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 611 for (var removed in record.removedNodes) { | 625 for (var removed in record.removedNodes) { |
| 612 if (identical(node, removed)) { | 626 if (identical(node, removed)) { |
| 613 observer.disconnect(); | 627 observer.disconnect(); |
| 614 element.removed(); | 628 element.removed(); |
| 615 return; | 629 return; |
| 616 } | 630 } |
| 617 } | 631 } |
| 618 } | 632 } |
| 619 }).observe(element.parentNode, childList: true); | 633 }).observe(element.parentNode, childList: true); |
| 620 } | 634 } |
| OLD | NEW |