8000 Checking if an option is disabled does not consider if itself is disabled · Issue #1917 · w3c/webdriver · GitHub
[go: up one dir, main page]

Skip to content

Checking if an option is disabled does not consider if itself is disabled #1917

@PotatoCP

Description

@PotatoCP

based on https://w3c.github.io/webdriver/#dfn-disabled

An element element is disabled if the following steps return true:

  1. If element is an option element or element is an optgroup element:

    1. For each inclusive ancestor ancestor of element:

      1. If ancestor is an optgroup element or ancestor is a select element, and ancestor is actually disabled, return true.
    2. Return false.

  2. Return element is actually disabled.

If element is an option element, we will check its inclusive ancestor that are either optgroup or select element. That means it will not checked if the element itself is disabled (since option is not optgroup nor select element).

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

      0