X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/b3f4fee8a2f01bf946bf28f9abd8b782e67dc186..11ee4548da5e5e4297d020356c6d1014475d6b05:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index 6f3d7de..0a1a354 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -372,7 +372,7 @@ $.extend(Document.prototype, Backbone.Events, { createDocumentNode: function(from) { if(!(from instanceof Node)) { - if(from.text) { + if(from.text !== undefined) { from = document.createTextNode(from.text); } else { var node = $('<' + from.tagName + '>');