Closed
Bug 42529
Opened 24 years ago
Closed 24 years ago
Bugzilla reports: radios don't change when updating Resolution
Categories
(Core :: DOM: Core & HTML, defect, P3)
Core
DOM: Core & HTML
Tracking
()
VERIFIED
FIXED
M17
People
(Reporter: pollmann, Assigned: jst)
References
()
Details
When setting the resolution of a bug in Bugzilla (e.g. FIXED), the radio to the left of the resolution combo box should be automatically checked. This does not happen. Rod already did some preliminary investigation and determined that the combo box is firing an onchange, so the cause is probably that refering to an element in an array of radios isn't working.
Reporter | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → M17
Comment 1•24 years ago
|
||
seems somehow related to bug 40571, though that's been fixed for about 2 weeks now
Reporter | ||
Comment 2•24 years ago
|
||
I cooked up a test case to test the first hypothesis and it works fine, so I went back to the original page. I get this on the console when changing the Resolution select: JavaScript error: line 0: document.changeform.knob has no properties So for some reason knob is not accessible as a property of changeform. I'm still looking into this.
Summary: form.radio[x].checked = true doesn't work → Bugzilla reports: radios don't change when updating Resolution
Reporter | ||
Comment 3•24 years ago
|
||
This seems to work when the form is a container, but not when it is a leaf node. for example, this works: <FORM> <INPUT TYPE=radio NAME=knob VALUE=resolve> <BUTTON ONCLICK="form.knob.checked=true;">Check</BUTTON> </FORM> But this does not (simply insert a <P> before </FORM>) <FORM> <INPUT TYPE=radio NAME=knob VALUE=resolve> <BUTTON ONCLICK="form.knob.checked=true;">Check</BUTTON> <P> </FORM> The fact that the form is not correctly nested and has to be demoted to a leaf node also causes the bugzila bug page to take about twice as long to lay out as it would if it were correctly nested. We should fix this in bugzilla too.
Comment 4•24 years ago
|
||
Erm, <P> is perfectly valid inside <FORM>, as is pretty much everything else except FORM itself: <!ELEMENT FORM - - (%block;|SCRIPT)+ -(FORM) -- interactive form -->
Reporter | ||
Comment 6•24 years ago
|
||
Ian - interesting point, and </p> is optional, so why are we demoting this form to be a leaf node? I don't know the specifics on how this decision to demote or not is made...
Assignee | ||
Comment 7•24 years ago
|
||
I have a fix for the problem that form controls can't always be accessed after we've demoted a form to be a leaf node, and the reason we do that is coverd by bug 42312.
Reporter | ||
Comment 8•24 years ago
|
||
Great, that's exactly the problem. I'm giving this to you so you can close it out when you checkin that fix. Thanks!
Assignee: pollmann → jst
Status: ASSIGNED → NEW
Assignee | ||
Comment 9•24 years ago
|
||
I checked in my fix today, closing this bug.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•