Skip to content

Commit 977647c

Browse files
committed
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.
1 parent 1997c4a commit 977647c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pywb/static/wombat.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -774,8 +774,7 @@ var wombat_internal = function($wbwindow) {
774774
return extract_orig(res);
775775
}
776776

777-
def_prop($wbwindow.HTMLElement.prototype, "baseURI", undefined, get_baseURI);
778-
def_prop($wbwindow.HTMLDocument.prototype, "baseURI", undefined, get_baseURI);
777+
def_prop($wbwindow.Node.prototype, "baseURI", undefined, get_baseURI);
779778
}
780779
}
781780

0 commit comments

Comments
 (0)