On May 16, 2006, at 2:39 PM, prla wrote:
>
> I was hopeful this would fix it - the problems are indeed similar but
> not identical - but it didn't. I'm now using the latest trunk and the
> problem persists: the input elements only get type="checkbox" and
> value="<value>" and no 'onclick' or 'name' attributes.
>
> Could this be related to something else?
I can't reproduce. Show me a full example that proves that it's broken.
MochiKit v1.4 [IE 6.0]
Type your expression in the input box below and press return, or see
the notes below for more information.
>>> elem = INPUT({'type':'checkbox', 'name':'itemCheckbox',
'value':'foo', 'onclick':'alert("hi");'})
[object]
>>> elem.onclick
function anonymous() {alert("hi");}
>>> elem.name
"itemCheckbox"
>>> elem.value
"foo"
>>> elem.type
"checkbox"
>>> elem.outerHTML
"<INPUT type=checkbox value=foo name=itemCheckbox>"