smartxml: fix
[fnpeditor.git] / src / smartxml / smartxml.js
index 637fda6..6609092 100644 (file)
@@ -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 {