Closed Bug 68674 Opened 24 years ago Closed 24 years ago

STRONG tag hides other tags

Categories

(Core :: DOM: HTML Parser, defect)

x86
All
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 26347

People

(Reporter: vpel, Assigned: harishd)

Details

(Keywords: testcase)

Attachments

(1 file)

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.
That's bad HTML: STRONG should be closed first, because it got opened last. Proposing INVALID.
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
Attached file Testcase (deleted) —
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
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.
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
updated qa contact.
QA Contact: janc → bsharma
VERIFIED DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: