Closed
Bug 139689
Opened 23 years ago
Closed 20 years ago
<B>...</B> style gets applied beyond its specified range
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
RESOLVED
DUPLICATE
of bug 181697
Future
People
(Reporter: momoi, Assigned: harishd)
References
()
Details
(Keywords: compat, testcase, Whiteboard: [residual style])
Attachments
(1 file)
144 bytes,
text/html
|
Details |
** Observed with 2002-04-23 Win32 1.00 Branch build **
This problem was orginally reported for the Japanese page cited in
the URL field above. I will attach a reduced test case below but the
essence of the problem is that: the <b> style is applied to elements beyond
the specified range when <P> is within another block element.
Here's a reduced test case:
========================================
<HTML>
<BODY>
<OL>
<B>
<LI>This is list #1
<P>
</B>
This is a comment line #1<BR>
</OL>
This is a comment line #2
</BODY>
</HTML>
========================================
<B> is to be applied only to the 1st list item and the comment line #1 is
supposed to be in non-bold. I will upload this test case attachment but
all the lines get bod style in this test case.
Additional notes:
1. If you delete <P>, it will display as intended - i.e. 2 comments are
in lain style.
2. If you add the closing </LI>, this will not be a problem.
3. Among IE5.5, NN4.x and Mozilla/NS6, only Mozilla/NS6 behaves this way.
<B> is supposed to apply to only inline elements but even if that were
the case, the results here seems wrong. Most people don't add the closing
</LI> and this problem for that reason is serious.
Reporter | ||
Comment 1•23 years ago
|
||
CC'ing mgalli.
Reporter | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
I believe this is a dup of Bug 139457? Seems like Mozilla fails when HTML tags
is not nested correctly...
Reporter, you could try running your attached HTML test case through a HTML
validator. I have A Real Validator v 1.11 wich I would would recomend
(http://download.com.com/3120-20-0.html?qt=A+real+validator&tg=dl-2001)
Thanks for using Mozilla!
Comment 4•23 years ago
|
||
<OL>
<B>
<LI>This is list #1
<P>
</B>
This is a comment line #1<BR>
</OL>
The problem here is that the <li> does not end till the next <li> is encountered
or till </ol> is encountered. So what you have here, in effect is:
<ol><b><li>Text</b>Text</li></ol>
Now <b> is not allowed as a child of <ol> and the <b> and <li> tags are
misnested.... There is no "correct" rendering here....
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0.1
Momoi: How important is this site? I'm trying not to shakeup the parser as much
as possible.
Updated•23 years ago
|
Target Milestone: mozilla1.0.1 → Future
Updated•22 years ago
|
Updated•21 years ago
|
Whiteboard: [residual style]
Comment 6•20 years ago
|
||
I'm marking this a DUPE of bug 181697, since this seems to be fixed on current
trunk builds and that seems like the right sort of code change to fix this.
*** This bug has been marked as a duplicate of 181697 ***
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•