Blame 0013-35_fix-sarissa.diff-from-Debian.patch

f147723
From 24d43c417df0fe729433060d409177c4669650ef Mon Sep 17 00:00:00 2001
f147723
From: Ruben <ruben@rubenkerkhof.com>
f147723
Date: Sun, 17 Oct 2010 17:51:06 +0200
f147723
Subject: [PATCH 13/14] 35_fix-sarissa.diff from Debian
f147723
f147723
---
f147723
 sarissa.js |    8 +++++++-
f147723
 1 files changed, 7 insertions(+), 1 deletions(-)
f147723
f147723
diff --git a/sarissa.js b/sarissa.js
f147723
index 220edb2..69e8797 100644
f147723
--- a/sarissa.js
f147723
+++ b/sarissa.js
f147723
@@ -265,7 +265,13 @@ else{ /* end IE initialization, try to deal with real browsers now ;-) */
f147723
             * 
  • 3 == INTERACTIVE,
  • f147723
                 * 
  • 4 == COMPLETED
  • f147723
                 */
    f147723
    -            XMLDocument.prototype.readyState = 0;
    f147723
    +            try {
    f147723
    +                XMLDocument.prototype.readyState = 0;
    f147723
    +            } catch(e) {
    f147723
    +                // XXX on some browsers (Firefox 3.6 at least) this fails,
    f147723
    +                // however I think this is rarely a problem so we just
    f147723
    +                // ignore it here...
    f147723
    +            };
    f147723
                 /**
    f147723
                 * 

    Emulate IE's parseError attribute

    f147723
                 */
    f147723
    -- 
    f147723
    1.7.3.1
    f147723