Closed Bug 6511 Opened 25 years ago Closed 25 years ago

label on <checkbox/>

Categories

(Core :: XUL, defect, P3)

All
Windows 95
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: alistair.vining, Assigned: mikepinkerton)

References

Details

It seems that in a .xul file:

<html:label><html:input type="checkbox" name="check1"
checked="checked"/>checkbox 1</html:label>

works, but

<html:label><checkbox/>Dual state</html:label>

doesn't.  Is this a deliberate decision?  The advantage of the first syntax was
that clicking on the label selcted the checkbox.
Assignee: trudelle → pinkerton
reassigning to pinkerton
reassigning to pinkerton
Status: NEW → ASSIGNED
i'll take a look. not sure what could be different. marking assigned.
labels only know about things inside them that are nsIFormControlFrames. the xul
checkbox is currently not one of these. Not sure how to get around this since I
don't want to make it an nsIFormControlFrame.
ccing hyatt, as promised.

the more we talk about this, the uglier it gets.
all platforms.
Hardware: PC → All
this should go away when we merge with the html checkbox
Depends on: 7546
Target Milestone: M9
7546 is targeted for m8, so targeting this for m9.
moving to M10 because i have no idea when the dependant bug will get fixed.
Depends on: 9723
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
<checkbox> no longer exists. use <html:input> for tri-state checkboxes, where it
works inside of a label.
Status: RESOLVED → VERIFIED
code level fix, marking verified. reopen if i'm wrong here...
You need to log in before you can comment on or make changes to this bug.