From ed579fd978f875e3f1e9e4b4cad15513e68dd2d4 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Thu, 29 Mar 2018 20:10:24 -0400 Subject: [PATCH] for easier inner html creations --- dom.d | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dom.d b/dom.d index da132bc..8924708 100644 --- a/dom.d +++ b/dom.d @@ -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);