r1847 - in branches/bxe_2_0: mozile/td relaxng
[email protected] Wed, 25 Jun 2008 13:14:24 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Wed Jun 25 13:14:23 2008
New Revision: 1847
Log:
fix FF3 issues
Modified:
branches/bxe_2_0/mozile/td/http.js
branches/bxe_2_0/relaxng/DocumentVDOM.js
Modified: branches/bxe_2_0/mozile/td/http.js
==============================================================================
--- branches/bxe_2_0/mozile/td/http.js (original)
+++ branches/bxe_2_0/mozile/td/http.js Wed Jun 25 13:14:23 2008
@@ -87,6 +87,16 @@
// if there's no element called parsererror...
if (p.getElementsByTagNameNS("http://www.mozilla.org/newlayout/xml/parsererror.xml","parsererror").length == 0) {
+ //fix firefox 3 issue (can't access node, without making a new documenting and adopting the node;
+ try {
+ p.documentElement.nodeName;
+ } catch (e) {
+ var d = document.implementation.createDocument("","",null);
+ d.appendChild(d.adoptNode(p.documentElement,true));
+ d.td = p.td;
+ d.loader =p.loader;
+ p = d;
+ }
reqObj.document = p;
reqObj.isError = false;
reqObj.status = 200;
Modified: branches/bxe_2_0/relaxng/DocumentVDOM.js
==============================================================================
--- branches/bxe_2_0/relaxng/DocumentVDOM.js (original)
+++ branches/bxe_2_0/relaxng/DocumentVDOM.js Wed Jun 25 13:14:23 2008
@@ -34,6 +34,16 @@
}
+ //fix firefox 3 issue (can't access node, without making a new documenting and adopting the node;
+ try {
+ this.xmldoc.documentElement.localName;
+ } catch (e) {
+ var d = document.implementation.createDocument("","",null);
+ d.appendChild(d.adoptNode(this.xmldoc.documentElement,true));
+ this.xmldoc = d;
+ }
+
+
if (this.xmldoc.documentElement.localName == "schema" &&
this.xmldoc.documentElement.namespaceURI == "http://www.w3.org/2001/XMLSchema" ) {
alert("XML Schema validation is not supported. You have to use Relax NG");
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs