Closed
Bug 68674
Opened 24 years ago
Closed 24 years ago
STRONG tag hides other tags
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
People
(Reporter: vpel, Assigned: harishd)
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
text/html
|
Details |
Under some circumstances, the <STRONG> tag can hide other tags as in the
following example:
<HTML><BODY>
<A HREF="www.mozilla.org">www.<STRONG>mozilla.org</STRONG></A>
This text is not displayed as a link and it's OK....
<HR>
<A HREF="www.mozilla.org">www.<STRONG>mozilla.org</A></STRONG>
This text is now displayed as a link and it should not !!!
</BODY></HTML>
Proble occurs because </A> is not seen (because it's inside a
<STRONG> </STRONG> tag set.
The same test case fails with EM instead of STRONG.
With netscape 4, there was no problem with this kind of HTML text.
Comment 1•24 years ago
|
||
That's bad HTML: STRONG should be closed first, because it got opened last.
Proposing INVALID.
Comment 2•24 years ago
|
||
Over to parser. Recommending INVALID also; HTML tags should be properly nested
and when they are not Mozilla takes a guess at what the author really meant.
This guess is often right, but not always; if authors want a correct rendering
they should write correct code.
Assignee: clayton → harishd
Component: HTML Element → Parser
QA Contact: gerardok → janc
Comment 3•24 years ago
|
||
Updated•24 years ago
|
Comment 4•24 years ago
|
||
Seems to be covered by bug 26347, the gloriously vague "some [badly nested]
tags lead to incorrect parsing". I suggest Mats' testcase gets attached to that
and this marked as a DUP.
Ok this is invalid HTML, but what a simple way to tackle the mozilla parser.
Comment 6•24 years ago
|
||
Marking as dup of bug 26347 and attaching the testcase to that bug.
*** This bug has been marked as a duplicate of 26347 ***
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•