Greetings:
Safari fires off an exception when attempting to create a DOM:
// code for IE
if (window.ActiveXObject) {
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument) {
xmlDoc=document.implementation.createDocument("","",null);
} else {
alert('Your browser cannot handle this script');
}
The exception raised on:
document.implementation.createDocument()
Thusly:
TypeError: Value undefined (result of expression xmlDoc.load) is not object.
So even though the script thinks the browser is W3C compliant (passing the
'document.implementation.createDocument()') criteria, it fails.
1) Doesn't anyone know a solution/remedy for this?
2) How do I create a DOM doc in Safari?
-- Ric.
Safari fires off an exception when attempting to create a DOM:
// code for IE
if (window.ActiveXObject) {
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
}
// code for Mozilla, Firefox, Opera, etc.
else if (document.implementation && document.implementation.createDocument) {
xmlDoc=document.implementation.createDocument("","",null);
} else {
alert('Your browser cannot handle this script');
}
The exception raised on:
document.implementation.createDocument()
Thusly:
TypeError: Value undefined (result of expression xmlDoc.load) is not object.
So even though the script thinks the browser is W3C compliant (passing the
'document.implementation.createDocument()') criteria, it fails.
1) Doesn't anyone know a solution/remedy for this?
2) How do I create a DOM doc in Safari?
-- Ric.