Closed
Bug 286242
Opened 20 years ago
Closed 20 years ago
Should handle nested anchors consistently
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
People
(Reporter: minghong, Unassigned)
References
()
Details
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.6) Gecko/20050223 Firefox/1.0.1
Being an invalid HTML, when there is nested anchor elements like <a
href="http://www.goodguy.com"><a href="http://www.badguy.com">Click me
;-)</a></a>, Mozilla visits the outer anchor when left-clicking, but the inner
anchor when right-clicking (save as).
Reproducible: Always
Steps to Reproduce:
1. Left-click on a nested anchor
2. Right-click on a nested anchor
Actual Results:
Visit outer anchor on left-click, but inner anchor on right-click.
Expected Results:
Should be consistent: either outer or inner anchor.
Workaround: Press and hold mouse button over the anchor to see real url.
Comment 1•20 years ago
|
||
Comment 2•20 years ago
|
||
WFM (allways uses inner)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050308
Firefox/1.0+
Reporter | ||
Comment 3•20 years ago
|
||
My fault. Need to have an element in between the 2 anchors, e.g.
<a href="http://www.google.com/intl/en/images/logo.gif">
<div>
<a href="https://bugzilla.mozilla.org/ant.jpg">Save me</a>
</div>
</a>
Reporter | ||
Comment 4•20 years ago
|
||
And that element needs to be an non-inline element like div, p, table, etc.
Inline elements like span will just work fine.
P.S. Next time, please visit the URL before making the test case. ;-)
Comment 5•20 years ago
|
||
I fixed this bug in the HTML parser over in bug 90664. I'm marking this bug a
duplicate of that one.
Note that there is another bug on the actual problem with the behavior of nested
links (the difference between right and left click behavior).
*** This bug has been marked as a duplicate of 90664 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•