Closed
Bug 130409
Opened 23 years ago
Closed 4 years ago
setting window.location.host property does not work as expected
Categories
(Core :: DOM: Core & HTML, defect, P5)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: kryptolus, Unassigned)
References
()
Details
Going to the above URL will keep reloading the same page. The script checks if document.location.host is not "www.sparkasse-aachen.de", then it sets document.location.host to "www.sparkasse-aachen.de" but that does not seem to cause mozilla to change pages. Just reload the current one. Even worse, if you leave the page, and come back, the page is already cached and it will be reloading really fast and stop/esc won't work.
Reporter | ||
Comment 1•23 years ago
|
||
http://developer.netscape.com/docs/manuals/communicator/jsref/wina1.htm#1013364 says that the host property is writable.
Comment 2•23 years ago
|
||
Also, setting window.location.hostname won't accept a port (it uses it as part of the dns name).
Status: UNCONFIRMED → NEW
Component: JavaScript Engine → DOM Level 0
Ever confirmed: true
Summary: setting document.location.host property does not work as expected → setting window.location.host property does not work as expected
Comment 5•23 years ago
|
||
ssieb, that's as expected. To set a host:ip combination, use the host attribute.
Observing the same problem on win98 and winXP paltform/os ==> all/all Please remember that the bug (as described in command 0) is still present!
OS: Linux → All
Hardware: PC → All
Updated•15 years ago
|
Assignee: general → nobody
QA Contact: desale → general
Comment 11•6 years ago
|
||
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven’t been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Updated•4 years ago
|
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INCOMPLETE
You need to log in
before you can comment on or make changes to this bug.
Description
•