[Webkit-unassigned] [Bug 47348] Setting href attributes prevents correct re-basing of URL

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 13 05:48:11 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=47348





--- Comment #4 from Steve Block <steveblock at google.com>  2010-10-13 05:48:10 PST ---
I tried this on Chrome, Safari, FF 4 (FF 3 does not support updating the document base) and IE 8.

All pass the first part of the test ...

debug("Base case, rebase URL without attribute having been set");
base.href = "http://old_base/";
a.href = "foo?query";
shouldBe("a.href", "'http://old_base/foo?query'");
base.href = "http://new_base/";
shouldBe("a.href", "'http://new_base/foo?query'");

PASS a.href is http://old_base/foo?query
PASS a.href is http://new_base/foo?query

All fail the second part of the test in the same way - the href is not rebased ...

debug("Rebase URL where search attribute has been set");
base.href = "http://old_base/";
a.href = "foo";
a.search = "query";
shouldBe("a.href", "'http://old_base/foo?query'");
base.href = "http://new_base/";
shouldBe("a.href", "'http://new_base/foo?query'");

PASS a.href is http://old_base/foo?query
FAIL a.href should be http://new_base/foo?query, was http://old_base/foo?query

I don't see anything in the spec - http://dev.w3.org/html5/spec/urls.html - which suggests that setting an attribute should make the href absolute and therefore not subject to changes to the document base URI.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list