1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-15 00:03:28 +01:00

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.
This commit is contained in:
Robert Knight 2015-11-26 16:59:31 +00:00
parent 1997c4a180
commit 977647cea9

View File

@ -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);
}
}