Skip to content

Clicking <option> should not fire click event on the element’s container #1321

@alyssais

Description

@alyssais

In Chrome or Firefox, clicking on an option element results in a click event, where the event target is the option element.

In #770, clicking an element in webdriver was specified to fire an event at the option's parent node (the select). This is inconsistent with browsers, and means that there is a difference between webdriver implementations and browsers. This decreases the utility of webdriver implementations for testing, because code that works fine across browsers doesn't work correctly with webdrivers.

Is this intentional, or should the specified behaviour be changed to match what browsers do, and fire the event at the option element itself?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions