Opened 14 years ago
Closed 14 years ago
#7936 closed defect (duplicate)
dojo._Url broken for more than two args
Reported by: | Mike Wilson | Owned by: | anonymous |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | General | Version: | 1.2.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Two args ok:
new dojo._Url("http://mysite.com/a/b/c/d.html", "..") -> http://mysite.com/a/b/
Three args broken:
new dojo._Url("http://mysite.com/a/b/c/d.html", "..", "..") -> ..
The reason seems to be the local variable first initialized as:
var uri = [_a[0]];
and then used in a different way later on, thereby corrupting state after the first iteration in the arguments loop.
Note: See
TracTickets for help on using
tickets.
dup of #7935