Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sarissa.js patch - support for Firefox 3.6 #6

Open
nelg opened this issue Jan 17, 2012 · 0 comments
Open

sarissa.js patch - support for Firefox 3.6 #6

nelg opened this issue Jan 17, 2012 · 0 comments

Comments

@nelg
Copy link

nelg commented Jan 17, 2012

Please apply the following patch to sarissa.js.

This is to support firefox 3.6.. which otherwise never shows the main window.

             * <li>3 == INTERACTIVE,</li>
             * <li>4 == COMPLETED</li></ul>
             */
-            XMLDocument.prototype.readyState = 0;
+            try {
+                XMLDocument.prototype.readyState = 0;
+            } catch(e) {
+                // XXX on some browsers (Firefox 3.6 at least) this fails,
+                // however I think this is rarely a problem so we just
+                // ignore it here...
+            };
             /**
             * <p>Emulate IE's parseError attribute</p>
             */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant