зеркало из https://github.com/mozilla/gecko-dev.git
Bug 210222 - Make getURL smarter and not drop the leading # if the next character is "unsafe".
r=rginda@hacksrus.com
This commit is contained in:
Родитель
81a5c1d082
Коммит
d320b189ca
|
@ -1965,7 +1965,7 @@ CIRCChannel.prototype.getURL =
|
|||
function chan_geturl ()
|
||||
{
|
||||
var target;
|
||||
if (this.normalizedName[0] == "#")
|
||||
if (this.normalizedName.match(/^#[^!+&]/))
|
||||
target = ecmaEscape(this.normalizedName.substr(1));
|
||||
else
|
||||
target = ecmaEscape(this.normalizedName);
|
||||
|
|
Загрузка…
Ссылка в новой задаче