For some reason window.location is working but document location is not
-
d0rc
- Assigned user set to Thatcher
-
nickg
- Tag set to location
- State changed from new to open
- Assigned user changed from Thatcher to nickg
hi,
please pull the latest changes and see if it solves your issues.
thanks,
--nickg
-
nickg
Uh oh:
src/html/document.jsget location() {
if (this.ownerWindow) { return this.ownerWindow.location; } else { return this.baseURI; } }, set location(url) { this.baseURI = url; if (this.ownerWindow) { this.ownerWindow.location = url; } },
overwritten with:
src/xhr/document.jsget location(){
return new Location(this.documentURI, this); }, set location(url){ //very important or you will go into an infinite //loop when creating a xml document if(url) { this.location.replace(url); } }</code>
need investigation
-
nickg
I still see this occasionally. Not sure how location is not getting set.
I'm working on it.
-
nickg
a few fixes are in for this problem, but it's still not completely correct.
Right now, each "module directory" (e.g dom, parser, css, html, etc) has it's own tests and each module loads in just what it needs to run the test.
I have an alteranate test harness that loads in all of env.(rhino).js and runs the tests that way.
one-at-a-time: all tests pass
env.js + test: document.location test is failing!we are getting closer...
--nickg
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.