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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
8 | 8 |
| 9 $!TOPLEVEL |
| 10 |
9 @Experimental() | 11 @Experimental() |
10 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 12 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
11 $!MEMBERS | 13 $!MEMBERS |
12 | 14 |
13 /** | 15 /** |
14 * An override to place the contents into content rather than as child nodes. | 16 * An override to place the contents into content rather than as child nodes. |
15 * | 17 * |
16 * See also: | 18 * See also: |
17 * | 19 * |
18 * * <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.h
tml#innerhtml-on-templates> | 20 * * <https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.h
tml#innerhtml-on-templates> |
19 */ | 21 */ |
20 void setInnerHtml(String html, | 22 void setInnerHtml(String html, |
21 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { | 23 {NodeValidator validator, NodeTreeSanitizer treeSanitizer}) { |
22 text = null; | 24 text = null; |
23 var fragment = createFragment( | 25 var fragment = createFragment( |
24 html, validator: validator, treeSanitizer: treeSanitizer); | 26 html, validator: validator, treeSanitizer: treeSanitizer); |
25 | 27 |
26 content.append(fragment); | 28 content.append(fragment); |
27 } | 29 } |
28 } | 30 } |
OLD | NEW |