Closed Bug 160957 Opened 23 years ago Closed 23 years ago

Allow assigning *relative* URLs to location.href (at least in Quirks mode!?)

Categories

(Core :: JavaScript Engine, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: stig, Assigned: rogerl)

Details

Its very comon to se location.href assigned relative URLs like location.href="somepage.html" location.href="../someotherpage.html" etc. This works in IE and N4.79, but Mozilla requires a complete absolute URL like location.href="http://www.someserver.com/somepage.html" I suggest adding support for relative URLs too in Mozilla, at least in quirks mode.
that works for me in 2002073022, Linux (?)
works for me too on an 2002080404 build, on linux.
Ehh weird. It works for me too now, but I swear I've seen it broken so many times?! I've changed resolution to WORKSFORME for now, but I will return when I see it again, and try to investigate it a big deeper.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Marking Verified - but note that |location.href| is a DOM property, not a JS Engine one. If this bug ever needs to be reopened, it should be assigned to the DOM Level 0 component -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.