Closed
Bug 147566
Opened 23 years ago
Closed 15 years ago
Concurrent invalid tags (P and B) outside CAPTION causing remaining text to become bold
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: lapsap7+mz, Unassigned)
References
()
Details
(Keywords: compat, testcase, Whiteboard: [fixed by the HTML5 parser])
Attachments
(1 file)
564 bytes,
text/html
|
Details |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3)
Gecko/20020523
BuildID: 20020523
In this web page, the text becomes bold from the paragraph starting at "In
addition, because". I've looked in the page source but didn't see any unclosed
<b> tag. I note that in the table before that paragraph, the author had used
twice <b> but they are closed. He also used <p> within <caption> but normally
<p> in this case is ignored.
So, probably a bug in Mozilla.
Reproducible: Always
Comment 1•23 years ago
|
||
That part of the page looks like:
<p>
<b>
<caption>
<center><b>Table 2. Old document object vs. new document
and body objects</b></center></caption>
</b>
</p>
<tr>
Reporter | ||
Comment 2•23 years ago
|
||
Oops, I made a mistake. The <p> tag is within _<table>_ , not <caption> tag.
By any way, <p> isn't allowed within <table> and it should be ignored.
![]() |
||
Comment 3•23 years ago
|
||
To parser
Assignee: attinasi → harishd
Status: UNCONFIRMED → NEW
Component: Layout → Parser
Ever confirmed: true
QA Contact: petersen → moied
Reporter | ||
Comment 4•23 years ago
|
||
Reporter | ||
Comment 5•23 years ago
|
||
I've reduced the webpage to a minimum test case.
The problem comes from the fact that the author wrongly used <p> within <table>
and outside <caption>, and then he wrongly (again!) used <b> between <p> and
<caption> (cf the comments inside the HTML file). Strangely, the effect of <b>
doesn't stop at </b> after </caption> nor at </p>. But since "The CAPTION
element is only permitted immediately after the TABLE start tag", cf.
http://www.w3.org/TR/html4/struct/tables.html#h-11.2.2
or on the other hand, <p> isn't allowed immediately inside <table>, <p> must be
ignored.
Keywords: testcase
Summary: Text becomes bold from the paragraph starting at "In addition, because" → Concurrent invalid tags (P and B) outside CAPTION causing remaining text to become bold
Comment 7•16 years ago
|
||
I believe this is fixed by bug 487949.
Reporter | ||
Comment 8•16 years ago
|
||
I'm using FF 3.5.1 but the bug is still there. Let's wait until the fix of 487949 gets into the main trunk first and we'll see.
Updated•16 years ago
|
Assignee: mrbkap → nobody
QA Contact: moied → parser
Updated•15 years ago
|
Depends on: html5-parsing
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Whiteboard: [fixed by the HTML5 parser]
You need to log in
before you can comment on or make changes to this bug.
Description
•