Closed Bug 98173 Opened 23 years ago Closed 23 years ago

adding label makes caption text disappear

Categories

(Core :: Layout, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: cce, Assigned: karnaze)

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
BuildID:    20011080110

When adding <label for="tag">caption</label> to an existing
form, the caption does not show.  The form uses cols and
align right. The example given, removing either the cols
or the align right will "fix" the problem.  However, this is
but one instance in which the label mechanism is broken.  I
have more complicated forms that break with any significant
combination of align and/or cols attributes.  Note that removing
all cols="2" attributes doesn't solve the problem in the
complicated case.

Reproducible: Always
Steps to Reproduce:
1. Create a form with a table a text area and a label
2. Set cols="2" for the table or set align="right" for a column
3. View in browser

Actual Results:  Labels are not shown when cols="2" is added 
to the table attributes or when align="right" is
set to the td.  Remove either of these and
the label shows... 

Expected Results:  Labels are shown.

<html>
    <body>
        <form enctype="multipart/form-data" method="post">
            <table cols="2" >
                <tr>
                    <td align="right">
                        <label for="given">First:</label></td>
                    <td>
                        <input type="text" name="given"  id="given" />
                            </td></table></form></body></html>
Worksforme, linux build 2001-09-04-08.  Your build is a month old.  Please try a
recent build...
Attached file testcase
WFM 2001083103 Win32-trunk.
WFM, recently CVS-compiled linux build.  Closing WORKSFORME.  Reporter, reopen
this bug if the problem occurs again with an updated build.
Status: UNCONFIRMED → RESOLVED
Closed: 23 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: