Closed Bug 207032 Opened 21 years ago Closed 20 years ago

<li> interferes with closing </i> and </b>

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 181697

People

(Reporter: jeremiah_moss, Assigned: harishd)

References

()

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6

In the page http://www.tektonics.org/wally01.html, response #30 on up are all
bold-italic.  Only adding a </p> or a </li> before the </i></b> in the code in
entry #30 fixes the problem.

After experimentation, it seems the bug only happens in the case where <li>
comes before <p> without closing either one.

Granted, both <li> and <p> should be closed, but </b> is rendered ineffective!.

The "I shouldn't be bold!" comes after the </b>, and shouldn't be bold.  Same
happens with italics, and I suspect this happens with other tags as well.

Reproducible: Always

Steps to Reproduce:
1. View testcase with Mozilla (browser version doesn't seem to make a
difference, renders wrong in all)

Actual Results:  
"I shouldn't be bold!" is rendered as bold.

Expected Results:  
Rendered "I shouldn't be bold!" as normal without bold.  Internet Explorer
renders "I shouldn't be bold!" normally without bold.

aaa.html file included as testcase.
Confirming.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Tektonics fixed their page; see testcase instead.
Well.... <li> is allowed to contain <p>, so all the content is inside the <li>,
which is inside the <b>.

I suppose we could disallow <li> inside <b> so this would get converted to
residual style or something....
This is a DUPE of an older bug (with more people CC'd, so I'm moving the
discussion to that one).

*** This bug has been marked as a duplicate of 181697 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: