Closed Bug 26583 Opened 25 years ago Closed 25 years ago

Inner of nested <A HREF> Links does not work

Categories

(Core :: Layout, defect, P1)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rekle, Assigned: harishd)

References

()

Details

(Keywords: verifyme)

Attachments

(2 files)

On this page is a bunch of links. If you click on some of the links, Mozilla reports a 404 error. These links work successfully in IE 5.0. Try the "Making application programming easy with GNOME libraries" for an example of this problem.
Confirmed. At first I thought it was bad JavaScript, but instead it's due to this little perplexing gem, since this code fragment alone STILL works in IE: <pre><font size = -1> &lt;A HREF="/developer/papers.nsf/ed4512170f732bcb852567af000db1fe/cc9ecb5aacc40662852 567ef000dea6d?OpenDocument"&gt; &lt;FONT FACE="HELVETICA,HELV,ARIAL" SIZE="-1"&gt; &lt;A HREF="http://www-4.ibm.com/software/developer/library/michael-tiemann- interview.html"&gt; &lt;B&gt;An interview with Michael Tiemann &lt;/B&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;BR&gt;&lt;BR&gt; &lt;/A&gt;&lt;/FONT&gt; <font size = -1> </pre> <br> I'm not familiar with what effect this is supposed to achive. In fact, I've never seen anything remotely like this. Anybody care to comment on this coding style. Also, I should add that http://www2.software.ibm.com/developer/papers.nsf/ed4512170f732bcb852567af000db1 fe/cc9ecb5aacc40662852567ef000dea6d?OpenDocument Doesn't work in IE, so the problem could be that this is an IE-only "feature" and that the fallback is supposed to be to the link above, but it doesn't work because IBM simply forgot. Hope this helps.
Sorry, I think the first code fragment should actually look like this: <A HREF="/developer/papers.nsf/ed4512170f732bcb852567af000db1fe/cc9ecb5aacc40662852 567ef000dea6d?OpenDocument"> <FONT FACE="HELVETICA,HELV,ARIAL" SIZE="-1"> <A HREF="http://www-4.ibm.com/software/developer/library/michael-tiemann- interview.html"> <B>An interview with Michael Tiemann </B></A></FONT><BR><BR> </A></FONT> If that comes out wrong, I think you still get the general idea.
The HTML code snippet has nested <A> elements, which are strictly forbidden by the HTML 4 spec. The closest bug to this seems to be bug 23780, "Anchor element not closed by second <A>", REOPENED. If that bug were fixed, the first <A HREF> would be closed before it had any content, the second <A HREF> ought to work, and the second </A> would be leftover garbage.
Assignee: leger → rickg
Component: Browser-General → HTML Element
QA Contact: cbegle → petersen
Summary: Links don't work → Inner of nested <A HREF> Links does not work
Status: NEW → ASSIGNED
*** Bug 26949 has been marked as a duplicate of this bug. ***
This is a problem we need to fix for beta, me thinks. *** This bug has been marked as a duplicate of 3944 ***
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
Keywords: verifyme
This bug is still not fixed in the 2000030623 build. I suspect it was incorrectly marked as a duplicate of bug #3944.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
here is a further reduced case: <A HREF="foo.htm"> <FONT> <A HREF="http://www.mozilla.org">Take me to mozilla.org not to foo.htm
Content model: docshell=01101970 html@0203E2CC refcount=3< head@02038BDC refcount=2< > body@0201054C refcount=3< a@0204D9BC href=foo.htm refcount=3< Text@0204D780 refcount=3< \n> font@0204D71C refcount=3< Text@0204D5F0 refcount=3<\n> a@0204D58C href=http://www.mozilla.org refcount=3< Text@0204D350 refcount=3<Take me to mozilla.org not to foo.htm\n> > > > > >
I'll take this..
Assignee: rickg → harishd
Status: REOPENED → NEW
Priority: P3 → P2
Target Milestone: --- → M16
Priority: P2 → P1
Status: NEW → ASSIGNED
Attached patch A better patchSplinter Review
Ex: <A><B><A> - Here the inner <A> should be informed about the outer <A> ( Anchor cannot contain self ). FIXED by tweaking DTD's containment rules.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago25 years ago
Resolution: --- → FIXED
Marking verified with the May 22nd build.
Status: RESOLVED → VERIFIED
SPAM. HTML Element component deprecated, changing component to Layout. See bug 88132 for details.
Component: HTML Element → Layout
*** Bug 188234 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: