Open
Bug 1434268
Opened 8 years ago
Updated 3 years ago
[FAIL] clicking and preventDefaulting a checkbox causes the checkbox to be checked during the click handler but reverted
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
NEW
People
(Reporter: m.kurz, Unassigned)
References
()
Details
(Keywords: testcase)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.119 Safari/537.36
Steps to reproduce:
Go to http://w3c-test.org/html/semantics/forms/the-input-element/checkbox-click-events.html
The test was posted here: https://bugs.webkit.org/show_bug.cgi?id=149398#c5
Actual results:
First test fails ("clicking and preventDefaulting a checkbox causes the checkbox to be checked during the click handler but reverted")
Expected results:
First test should pass
Updated•8 years ago
|
Has Regression Range: --- → irrelevant
Has STR: --- → yes
Component: Untriaged → DOM: Events
Keywords: testcase
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → All
Comment 1•8 years ago
|
||
The failing array equality assertion in Firefox has the actual value:
[false, false, false]
instead of the expected value:
[ true, true, false]
where:
#0: In click event listener, immediately before calling preventDefault().
#1: In click event listener, immediately after calling preventDefault().
#2: Right after HTMLElement.click() returns.
Presumably the checkbox's checkedness isn't getting toggled to `true` right before the event listener dispatch occurs.
Spec: https://html.spec.whatwg.org/multipage/input.html#the-input-element:legacy-pre-activation-behavior
Updated•8 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•7 years ago
|
Priority: -- → P3
This seems to be fixed. Using Firefox 75 on Ubuntu 18.04 all tests in http://w3c-test.org/html/semantics/forms/the-input-element/checkbox-click-events.html are now passing.
I think this issue can be closed.
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•