for easier inner html creations

This commit is contained in:
Adam D. Ruppe 2018-03-29 20:10:24 -04:00
parent c2176c3d36
commit ed579fd978
1 changed files with 7 additions and 0 deletions

7
dom.d
View File

@ -3746,6 +3746,13 @@ class DocumentFragment : Element {
super(_parentDocument);
}
///
this(Html html) {
this(null);
this.innerHTML = html.source;
}
///.
override string writeToAppender(Appender!string where = appender!string()) const {
return this.innerHTML(where);