Greets.
Just downloaded v.0.9.6.1 and was disappointed when the
minesweeper demo failed.
Seems its due to the use of the (now deprecated)
loadXML() method.
Simple change, diff included below.
Regards,
Pat D.
----------------- snip here ---------------------------
diff -Naur
sarissa/sample-apps/minesweeper/minesweeper.js
sarissa/sample-apps.new/minesweeper/minesweeper.js
--- sarissa/sample-apps/minesweeper/minesweeper.js
2005-07-14 20:11:06.000000000 -0400
+++ sarissa/sample-apps.new/minesweeper/minesweeper.js
2006-03-08 01:26:57.000000000 -0500
@@ -184,9 +184,10 @@
function loadBoard() {
jDictionary = new Object ();
- var xmlDocument = Sarissa.getDomDocument();
var xmlString = "<SweeperMap></SweeperMap>";
- xmlDocument.loadXML(xmlString);
+ // var xmlDocument = Sarissa.getDomDocument();
+ // DEPRECATED: xmlDocument.loadXML(xmlString);
+ var xmlDocument = (new
DOMParser()).parseFromString(xmlString, "text/xml");
var ele = xmlDocument.createElement('range');
ele.setAttribute('hMax', hMax);
ele.setAttribute('vMax', vMax);