Closed
Bug 304792
Opened 19 years ago
Closed 19 years ago
bad empty table element handling : <table/>
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 185693
People
(Reporter: philippe.gassmann, Unassigned)
Details
Attachments
(1 file)
|
343 bytes,
text/xml; charset=utf-8
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050728 Firefox/1.0.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050728 Firefox/1.0.6 When i use this XHTML : <?xml version="1.0"?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Test</title> </head> <body> <table> <tr> <td style="background-color:#00FF00;"> something </td> <td style="background-color:#0000FF;"> <table/> </td> </tr> </table> This text should be after the table ! </body> </html> The text saying that it should be after the table is in the table : the <table/> element seems to "eat" every other closing elements located after it. I know that my documents should not have such empty table tags. But I think Firefox (gecko) should simply ignore these empty tags. Reproducible: Always Steps to Reproduce: 1. just show the html present in "Details" in Firefox 2. 3. Actual Results: Bad layout : the text after the table is in the table Expected Results: the text afer the table must be displayed after the table
| Reporter | ||
Comment 3•19 years ago
|
||
In fact, it does not work if the extension of the file is .html but it works if its .xml
In that case, please read the XHTML spec. Appendix C.3: "Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the minimized form (e.g. use <p> </p> and not <p />)." This is a dupe of bug 185693 or any other of the 'XML syntax in a HTML document' type of bugs.
Comment 5•19 years ago
|
||
*** This bug has been marked as a duplicate of 185693 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•