# HG changeset patch # User Nicholas Jillings # Date 1464271297 -3600 # Node ID e7844a500060a148af4975d6fb10023e10cd2cef # Parent 5b755f508e2e7782f603d15d9bf2a7a9d65c20f7 Hotfix for #21 / #70 diff -r 5b755f508e2e -r e7844a500060 js/specification.js --- a/js/specification.js Fri May 20 20:18:49 2016 +0200 +++ b/js/specification.js Thu May 26 15:01:37 2016 +0100 @@ -163,7 +163,7 @@ this.encode = function() { var RootDocument = document.implementation.createDocument(null,"waet"); - var root = RootDocument.children[0]; + var root = RootDocument.firstChild; root.setAttribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"); root.setAttribute("xsi:noNamespaceSchemaLocation","test-schema.xsd"); // Build setup node