Closed
Bug 510063
Opened 16 years ago
Closed 16 years ago
[HTML5][Patch] Extra space appears on musica.com due to <form> foster-parenting
Categories
(Core :: DOM: HTML Parser, defect, P1)
Core
DOM: HTML Parser
Tracking
()
RESOLVED
FIXED
People
(Reporter: jgriffin, Assigned: hsivonen)
References
()
Details
Attachments
(1 file)
|
2.75 KB,
text/html
|
Details |
On the site musica.com (Alexa ranking 413), extra space occurs in the layout in two separate places (just below the title graphic, and above the "Buscador de Musica" search table), when the HTML5 parser is enabled. The site renders OK on FF 3.5, Safari, and IE8.
The issue occurs because the site uses <form> elements inside <tr> elements, which the HTML5 parser foster-parents to the table's parent, and the <form> element, even though empty, produces some blank vertical space.
Simplified testcase attached.
| Reporter | ||
Updated•16 years ago
|
| Reporter | ||
Comment 1•16 years ago
|
||
This issue also occurs on amazon.com, on the bottom of any product page, in the "Feedback" section. E.g., http://www.amazon.com/Echoes-Dead-Johan-Theorin/dp/0385342217/ref=pd_cp_b_1.
The cause is the same: a <form> element is foster-parented out of a <table> element, and produces some empty vertical space, whereas without the HTML5 parser, the <form> stays in the <table> and is simply not rendered.
| Assignee | ||
Comment 2•16 years ago
|
||
Filed spec bug:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=7978
This is excellent feedback! Please do note if you (or anyone else) finds more sites where this is a problem. I'm sure this can be fixed in the HTML parser, but if only a few sites are affected it might be worth keeping things simpler by keeping them as they are.
After all, the sites are still fully functional, just some rendering quirks.
| Assignee | ||
Comment 4•16 years ago
|
||
http://html5.org/tools/web-apps-tracker?from=4287&to=4288
(The spec change seems to have a copy-paste error in it.)
| Assignee | ||
Updated•16 years ago
|
Priority: -- → P1
| Assignee | ||
Comment 5•16 years ago
|
||
Patch attached to bug 502804.
Assignee: nobody → hsivonen
Status: NEW → ASSIGNED
| Assignee | ||
Updated•16 years ago
|
Summary: [HTML5] Extra space appears on musica.com due to <form> foster-parenting → [HTML5][Patch] Extra space appears on musica.com due to <form> foster-parenting
| Assignee | ||
Comment 6•16 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•