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)

defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: bugzilla, Unassigned)

References

()

Details

(Keywords: html4, testcase, xhtml)

Attachments

(1 file, 1 obsolete file)

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.
Attached file test case (obsolete) (deleted) —
This is similar to bug 48376, comment #19 (although that comment might refer to a different problem).
Attached file test case (revised) (deleted) —
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
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>
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.
Keywords: testcase, xhtml
Alias: fieldset-eats-spaces
Priority: -- → P4
Target Milestone: --- → Future
*** Bug 232675 has been marked as a duplicate of this bug. ***
*** Bug 203354 has been marked as a duplicate of this bug. ***
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
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.

Attachment

General

Created:
Updated:
Size: