Closed Bug 211091 Opened 21 years ago Closed 21 years ago
p element not terminated if end tag is missing before table
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4a) Gecko/20030401 The end tag of the p element is optional and frequently omitted. When the start tag of a block level element is encountered, the p element should be terminated and the next element started. At least with the table element, this does not work. The table is parsed as part as part of the preceding paragraph. Reproducible: Always Steps to Reproduce: 1. create an HTML page with a paragraph without an end tag immediately followed by table (like at the example URL). 2. View the page with the DOM inspector or use CSS to make the boundaries between elements visible 3. Add the missing end tag 4. View the results again. Actual Results: When the end tag is missing, the table is shown as a child element of the p element. When the end tag is there, the table is shown as a sibling of the p element. Expected Results: In both cases the result should be the same: The table should be a sibling of the p, not a child.
This is already fixed in newer releases. *** This bug has been marked as a duplicate of 91927 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.