From 419caedb08b1a6c81b20cef6bcf3ae48559606cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Aleksander=20=C5=81ukasz?= Date: Tue, 19 Nov 2013 17:30:10 +0100 Subject: [PATCH] smartxml: fix TEXT_NODE doesn't inherit from HTMLElement --- src/smartxml/smartxml.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 637fda6..6609092 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -376,7 +376,7 @@ $.extend(Document.prototype, Backbone.Events, { TextNodeFactory: TextNode, createElementNode: function(from) { - if(!(from instanceof HTMLElement)) { + if(!(from instanceof Node)) { if(from.text) { from = document.createTextNode(from.text); } else { -- 2.20.1