#1508: don't choke on comments before root
[redakcja.git] / redakcja / static / js / wiki / xslt.js
index ce7614d..46726c1 100644 (file)
@@ -85,7 +85,7 @@ function xml2html(options) {
             source.text('');
             options.error(error.text(), source_text);
         } else {
-            options.success(doc.firstChild);
+            options.success(doc.childNodes);
 
             withThemes(function(canonThemes) {
                 if (canonThemes != null) {