From 24d43c417df0fe729433060d409177c4669650ef Mon Sep 17 00:00:00 2001
From: Ruben <ruben@rubenkerkhof.com>
Date: Sun, 17 Oct 2010 17:51:06 +0200
Subject: [PATCH 13/14] 35_fix-sarissa.diff from Debian
---
sarissa.js | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/sarissa.js b/sarissa.js
index 220edb2..69e8797 100644
--- a/sarissa.js
+++ b/sarissa.js
@@ -265,7 +265,13 @@ else{ /* end IE initialization, try to deal with real browsers now ;-) */
* <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>
*/
--
1.7.3.1