adding label makes caption text disappear

RESOLVED WORKSFORME

Status

()

Core
Layout
RESOLVED WORKSFORME
16 years ago
16 years ago

People

(Reporter: Clark C. Evans, Assigned: karnaze (gone))

Tracking

Trunk
x86
Windows NT
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

16 years ago
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...
Created attachment 48164 [details]
testcase

Comment 3

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.