From: Aleksander Ɓukasz Date: Tue, 19 Nov 2013 16:30:10 +0000 (+0100) Subject: smartxml: fix X-Git-Url: https://git.mdrn.pl/fnpeditor.git/commitdiff_plain/419caedb08b1a6c81b20cef6bcf3ae48559606cb?ds=sidebyside;hp=98b0bc99617ca0f8cc6354aa91306f6437e3eb4d smartxml: fix TEXT_NODE doesn't inherit from HTMLElement --- 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 {