#1641 closed defect (fixed)
Wrong checked propery in Checkbox widget
Reported by: | Owned by: | bill | |
---|---|---|---|
Priority: | high | Milestone: | |
Component: | Widgets | Version: | 0.3 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
- The error in HtmlCheckBox?.html: checked="${this.checked}"
"checked" must be without argument. <input type="checkbox" checked> - valid.
As result, checkbox is always checked (until check-on and check-off manually).
- Macros ${this.checked} not changed. If look at generated HTML code in FF, we can see checked="${this.checked}" as is.
Change History (5)
comment:1 Changed 15 years ago by
comment:2 Changed 15 years ago by
Yes, checked="checked" allowed, but checked="" not allowed and recognized by IE and FF as "checked" state.
comment:3 Changed 15 years ago by
"checked" must be without argument.
I was just taking issue with this assertion, not suggesting this is not a bug (or that it is; I've not looked at it closely).
comment:4 Changed 15 years ago by
Milestone: | → 0.4 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
This was changed (and fixed) a few weeks ago; try the latest code.
Note: See
TracTickets for help on using
tickets.
re: point 1. See HTML40 pg 36: Boolean attributes may legally take a single value: the name of the attribute itself (e.g., selected="selected").
So <input type="checkbox" checked="checked"> is also valid. Thus one could use <input type="checkbox" ${this.checked}> and set this.checked='checked="checked"' or this.checked="".