Closed Bug 1107929 Opened 10 years ago Closed 10 years ago

Click event not dispatched by parent element when clicked on disabled input

Categories

(Core :: General, defect)

35 Branch
x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 329509

People

(Reporter: pimschreurs, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 Firefox/33.0
Build ID: 20141113143407

Steps to reproduce:

See the following code snippet:

<!DOCTYPE html>
<html>
<body>
<input type="text" disabled>
<script>
document.querySelector("input").addEventListener("click", function(e) { console.log(e, "click input"); });
document.body.addEventListener("click", function(e) { console.log(e, "click body"); });
</script>
</body>
</html>

Try clicking on the input element and examine your console log output (or lack thereof).


Actual results:

No events were dispatched.


Expected results:

"click body" should've been output in the console log; the click event should have been dispatched on the body element.

https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled

English is not my first language, so I may be reading things incorrectly, but I interpret what that document says to imply what I just described should've happened.
Similar to Bug 561784, and Duplication of bug 329509
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.