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)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: lapsap7+mz, Unassigned)

References

()

Details

(Keywords: compat, testcase, Whiteboard: [fixed by the HTML5 parser])

Attachments

(1 file)

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
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>
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.
To parser
Assignee: attinasi → harishd
Status: UNCONFIRMED → NEW
Component: Layout → Parser
Ever confirmed: true
QA Contact: petersen → moied
Attached file Reduced test case
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
Keywords: compat
Taking, there might be a possible fix.
Assignee: harishd → mrbkap
I believe this is fixed by bug 487949.
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.
Assignee: mrbkap → nobody
QA Contact: moied → parser
Depends on: html5-parsing
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.

Attachment

General

Created:
Updated:
Size: