| Index: tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
|
| index 7727ab7563e0d8b92cc1c3d2b4cb52251ab49ab4..4bfdfbcc794295c0024b4098a4bd24aaa03b5e44 100644
|
| --- a/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate
|
| @@ -59,14 +59,27 @@ $endif
|
| this.nodes.addAll(nodes);
|
| }
|
|
|
| + /**
|
| + * Adds the specified element after the last child of this
|
| + * document fragment.
|
| + */
|
| void append(Element element) {
|
| this.children.add(element);
|
| }
|
|
|
| + /**
|
| + * Adds the specified text as a text node after the last child of this
|
| + * document fragment.
|
| + */
|
| void appendText(String text) {
|
| this.nodes.add(new Text(text));
|
| }
|
|
|
| +
|
| + /**
|
| + * Parses the specified text as HTML and adds the resulting node after the
|
| + * last child of this document fragment.
|
| + */
|
| void appendHtml(String text) {
|
| this.nodes.add(new DocumentFragment.html(text));
|
| }
|
|
|