mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +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:
parent
1997c4a180
commit
977647cea9
@ -774,8 +774,7 @@ var wombat_internal = function($wbwindow) {
|
|||||||
return extract_orig(res);
|
return extract_orig(res);
|
||||||
}
|
}
|
||||||
|
|
||||||
def_prop($wbwindow.HTMLElement.prototype, "baseURI", undefined, get_baseURI);
|
def_prop($wbwindow.Node.prototype, "baseURI", undefined, get_baseURI);
|
||||||
def_prop($wbwindow.HTMLDocument.prototype, "baseURI", undefined, get_baseURI);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user