From 977647cea9a9888fd161ec11e7ffe8b64350634e Mon Sep 17 00:00:00 2001 From: Robert Knight Date: Thu, 26 Nov 2015 16:59:31 +0000 Subject: [PATCH] Override the baseURI property on the correct object baseURI is a property of Node.prototype in current browsers and should be overridden there, except for Safari where it cannot be overridden at all. --- pywb/static/wombat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pywb/static/wombat.js b/pywb/static/wombat.js index 09ad23c4..e089cbdc 100644 --- a/pywb/static/wombat.js +++ b/pywb/static/wombat.js @@ -774,8 +774,7 @@ var wombat_internal = function($wbwindow) { return extract_orig(res); } - def_prop($wbwindow.HTMLElement.prototype, "baseURI", undefined, get_baseURI); - def_prop($wbwindow.HTMLDocument.prototype, "baseURI", undefined, get_baseURI); + def_prop($wbwindow.Node.prototype, "baseURI", undefined, get_baseURI); } }