Bugzilla – Bug 151506
Konqueror - Problematic evaluating of onChange event
Last modified: 2008-03-14 13:07:03 UTC
This bug appears in the web-updater software. onchange event should be called only when the element has changed it's state (value) by this definition: http://www.w3.org/TR/html4/interact/scripts.html The onchange event occurs when a control loses the input focus and its value has been modified since gaining focus. But it seems that this if the status of the element is changed by JavaScript function, the onchange event is also evaluated even though is hadn't the focus ever during evaluating that function. Testcase HTML will be attached.
Created attachment 68845 [details] HTML testcase
Try that test case: If you select that three check boxes one by one, it should validate that all are selected and select the one single "All Checkboxes" checbox. If you unselect at least one of those three, it should unselect that "All Checkboxes" one. If you change the status of the "All Checkboxes" it should apply the same change to those three. But it should never call secondary "onchange" event of that checkbox changed by script.
Bugzilla didn't work well yesterday, adding this additional info sent via mail: The other strange behavior of this testcase is this one: - Select all check boxes by clicking on "C All" - Unselect C1 - It tells you that C1 was unselected - Click somewhere on the page (to remove the focus from that checkbox C1) - Then it says: "Unchecked all" (secondary onchange called) and unchecks "C2" and "C3" and informs that these check boxes were unselected (third level of onchange) This is almost the same, but you have to click to lose the focus.
fixed for kde4/webkit likely, no time for backport. sorry.