Bug 151506

Summary: Konqueror - Problematic evaluating of onChange event
Product: [openSUSE] SUSE Linux 10.1 Reporter: Lukas Ocilka <locilka>
Component: KDEAssignee: Dirk Mueller <dmueller>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: HTML testcase

Description Lukas Ocilka 2006-02-16 14:41:25 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.
Comment 1 Lukas Ocilka 2006-02-16 14:42:54 UTC
Created attachment 68845 [details]
HTML testcase
Comment 2 Lukas Ocilka 2006-02-16 14:46:08 UTC
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.
Comment 3 Lukas Ocilka 2006-02-17 07:41:12 UTC
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.
Comment 4 Dirk Mueller 2008-03-14 13:07:03 UTC
fixed for kde4/webkit likely, no time for backport. sorry.