Closed Bug 58214 Opened 25 years ago Closed 25 years ago

Displays 404 where NS 4.x displays first item

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 95
defect

Tracking

()

VERIFIED DUPLICATE of bug 49941

People

(Reporter: fireball, Assigned: jst)

References

()

Details

Overview Description: Steps to Reproduce: 1) go to above URL 2) see the 404 in the left frame Actual Results: Displays 404 Not Found Expected Results: Should display first Item. Reproducibility: 100% Build Date & Platform Bug Found: 2000102704, Win32 Additional Builds and Platforms Tested On: none, irc.mozilla.org was down, heck why... Additional Information: Not sure which component this is about...probably networking.
hmm. The problem may be that the code: var firstHit = document.links[1]; parent.parent.pic_map.location.href = firstHit; makes the variable firstHit an object instead of a string. At least the URL that Mozilla tries to go to is: http://webcenter.love.netscape.com/LoveBrowse/%5Bobject%20HTMLAnchorElement%5D So this could be a JavaScript issue...
->dom0 This may actually be the right behavior. document.links[n] returns the object (HTMLAnchorElement), and then you can get its various attributes from the object (e.g. var link = document.links[2]; var href = link.href). Hixie, let me know if I'm wrong here.
Assignee: gagan → jst
Component: Networking → DOM Level 0
QA Contact: tever → desale
marking invalid unless someone feels otherwise
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
(Actually, I need to evangelize them if it is, indeed, a problem on their end. Please reopen & reassign to evangelism if someone can confirm that this isn't a client bug)
Reopening and marking dup, sorry for spam...
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
This is a duplicate. I had marked the other bug as WONTFIX, but since it seems there may be more websites out there that use this feature I have reopened it for re-evaluation. And Boris is right, document.links[1] should return an object per the spec. If you would want the href, you should say document.links[1].href *** This bug has been marked as a duplicate of 49941 ***
Status: REOPENED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → DUPLICATE
Verifying as a duplicate of bug 49941 'document.links[0] does not return href'
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.