X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/cb448b7a76c90d02af296fca3830b056f0639a1e..55826c1f7f8bfec8c90096b1c1c779e118e357fc:/src/smartxml/smartxml.js diff --git a/src/smartxml/smartxml.js b/src/smartxml/smartxml.js index b673865..b449d82 100644 --- a/src/smartxml/smartxml.js +++ b/src/smartxml/smartxml.js @@ -299,7 +299,7 @@ $.extend(TextNode.prototype, { var parseXML = function(xml) { var toret = $($.trim(xml)); - if(!toret.length) { + if(toret.length !== 1) { throw new Error('Unable to parse XML: ' + xml); } return toret[0];