From 46fe5cffc952b80371f839fce0aa2fc8ded27f50 Mon Sep 17 00:00:00 2001 From: mrmr1993 Date: Wed, 26 Aug 2015 18:21:27 +0100 Subject: Use createElementNS for XML documents and remove XML specific codepaths This implements @gdh1995's idea from #1796. --- lib/utils.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/utils.coffee') diff --git a/lib/utils.coffee b/lib/utils.coffee index d4beff03..c0da6fb3 100644 --- a/lib/utils.coffee +++ b/lib/utils.coffee @@ -21,7 +21,7 @@ Utils = # Creates a single DOM element from :html createElementFromHtml: (html) -> - tmp = document.createElement("div") + tmp = DomUtils.createElement("div") tmp.innerHTML = html tmp.firstChild -- cgit v1.2.3