Closed
Bug 280676
Opened 20 years ago
Closed 20 years ago
<p> tag is closed prematurely by presence of a <div>
Categories
(Core :: Layout: Block and Inline, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: timwi, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0 StumbleUpon/1.999 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.7.5) Gecko/20041110 Firefox/1.0 StumbleUpon/1.999 In the following test case: <html> <head></head> <body> <p style='background: yellow'> Here is some text with yellow background. <div></div> This text should still have a yellow background, but doesn't. </p> </body> </html> Both paragraphs should be yellow, but only the top one is displayed yellow. Reproducible: Always Steps to Reproduce:
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Explanation please?
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
read the HTML spec
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → INVALID
1) I already have. I couldn't find anything that is relevant. 2) Even if this is invalid HTML, the result is clearly against user expectation. 3) If the HTML specification explicitly says that this is how a User Agent should render this case, please point me to the relevant section so that I can see.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
P has an optional end-tag and cannot contain blocks. Please stop reopening this bug. Bugzilla is not a support forum.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 20 years ago
Resolution: --- → INVALID
Comment 5•20 years ago
|
||
9.3.1. (...) The P element represents a paragraph. It cannot contain block-level elements (including P itself).
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•