mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
wobmat rewrite: support "a.href = '.'" properly even if trailing / missing
This commit is contained in:
parent
08849a573b
commit
c96082cf83
@ -447,6 +447,12 @@ var wombat_internal = function($wbwindow) {
|
|||||||
this._parser = make_parser(href);
|
this._parser = make_parser(href);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Special case for href="." assignment
|
||||||
|
if (prop == "href" && typeof(value) == "string" && value[0] == ".") {
|
||||||
|
this._parser.href = $wbwindow.document.baseURI;
|
||||||
|
value = this._parser.href;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
this._parser[prop] = value;
|
this._parser[prop] = value;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user