#8651 closed defect (fixed)
RadioButton: always checked on IE
Reported by: | sayuri | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.3 |
Component: | Dijit - Form | Version: | 1.3.0b1 |
Keywords: | Cc: | [email protected]… | |
Blocked By: | Blocking: |
Description
IE6 on XP, IE7 on Vista. RadioButton works fine on Firefox.
if a RadioButton is clicked, it becomes checked and all other RadioButtons are unchecked. but on IE, RadioButtons are not unchecked.
is this dojo.query()'s bug?
Change History (9)
comment:1 Changed 12 years ago by
Milestone: | tbd → 1.3 |
---|---|
Owner: | set to Douglas Hays |
comment:2 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 12 years ago by
Something wrong. RadioButton of 1.3.0b1 did not use ^= operator.
I tried some patternes.
// trunk dojo.query('INPUT[type=radio][name^="TheName"]', ... // 1.3.0u1 dojo.query('INPUT[type=radio][name="TheName"]', ... // 1.2.3 dojo.query('INPUT[type=radio][name=TheName]', ...
but every patternes were failed. so dojo.query() on IE dose not support 'INPUT[name=]' ?
comment:5 Changed 12 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
I found bug at dijit.form._FormWidget._setNameAttr() function. IE6 and IE7 do not support changing name property. see http://msdn.microsoft.com/en-us/library/ms534184(VS.85).aspx
Internet Explorer 8 and later can set the NAME attribute at run time on elements dynamically created with the createElement method. To create an element with a NAME attribute in earlier versions of Internet Explorer, include the attribute and its value when using the createElement method.
RadioButton create <input type="radio" /> w/o name property. so dojo.query() could not find anything.
comment:6 Changed 12 years ago by
Even on IE6, you can set the name anytime before the DOM node is added to the document. Possibly myCheckbox.attr('name', 'foo') doesn't work, if myCheckbox is already attached to <body>, but that's not the issue here.
What makes you think there's a bug? The nightly test is working fine. If you have a test that's failing then please attach it. (Although, you should open another ticket unless it's the same original problem as this ticket.)
comment:7 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
The original problem is fixed. Please open a different ticket with testcase attached.
comment:9 Changed 10 years ago by
Component: | Dijit → Dijit - Form |
---|
Hmm, that's strange. It does reproduce on test_CheckBox.html.
Doug, can you take a look? If it is a dojo.query() bug then we should pass it on to Alex.