Closed
Bug 210826
(fieldset-eats-spaces)
Opened 21 years ago
Closed 20 years ago
White space stripped after inline element children of <fieldset>
Categories
(Core :: Layout: Form Controls, defect, P4)
Core
Layout: Form Controls
Tracking
()
RESOLVED
WORKSFORME
Future
People
(Reporter: bugzilla, Unassigned)
References
()
Details
(Keywords: html4, testcase, xhtml)
Attachments
(1 file, 1 obsolete file)
(deleted),
text/html
|
Details |
When a label and a text box are direct children of a fieldset, as in:
<fieldset>
<label for="username">Name:</label> <input type="text" name="name" id="username">
</fieldset>
the space after the label disappears mysteriously. This does not happen if the
label and input field are enclosed in a paragraph tag, or if they are outside of
a fieldset.
Reporter | ||
Comment 1•21 years ago
|
||
Comment 2•21 years ago
|
||
This is similar to bug 48376, comment #19 (although that comment might refer to
a different problem).
Reporter | ||
Comment 3•21 years ago
|
||
In light of bug 48376, comment #19, added some other inline elements and a
strict DOCTYPE to the test. White space is stripped between <span>, <i>, <b>,
and <em>. This bug manifests in both standards compliant and quirks mode.
Attachment #126589 -
Attachment is obsolete: true
Reporter | ||
Comment 4•21 years ago
|
||
Revising description.
Only fieldset > * (in CSS terms) are affected. The bug did not manifest when the
inline elements were wrapped up in <p>, <span>, <blockquote>, or <q>, so it
doesn't seem to matter if the wrapper is block or inline.
Summary: Space between <label> and text box disappears in <fieldset> → White space stripped after inline element children of <fieldset>
Reporter | ||
Comment 5•21 years ago
|
||
Revising description.
Only fieldset > * (in CSS terms) are affected. The bug did not manifest when the
inline elements were wrapped up in <p>, <span>, <blockquote>, or <q>, so it
doesn't seem to matter if the wrapper is block or inline.
Reporter | ||
Updated•21 years ago
|
Alias: fieldset-eats-spaces
Updated•21 years ago
|
Priority: -- → P4
Target Milestone: --- → Future
Comment 6•21 years ago
|
||
*** Bug 232675 has been marked as a duplicate of this bug. ***
Comment 7•21 years ago
|
||
*** Bug 203354 has been marked as a duplicate of this bug. ***
Comment 8•20 years ago
|
||
The testcase seems to be working correctly, although I can remember having
similar problems...
Assignee: core.layout.form-controls → nobody
OS: Windows XP → All
QA Contact: desale → core.layout.form-controls
Hardware: PC → All
Comment 9•20 years ago
|
||
WFM, 2004-12-29-05 trunk Linux.
-> WORKSFORME
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•