Skip to content

"fire a focus event" expects an element as argument, but is called with a Window #12866

Description

@Ms2ger

What is the issue with the HTML Standard?

To fire a focus event named e at an element t with a given related target r, fire an event named e at t, using FocusEvent, with the relatedTarget attribute initialized to r, the view attribute initialized to t's node document's relevant global object, and the composed flag set.

but in the focus update steps, we get

  1. If entry is an element, let blur event target be entry.
    If entry is a Document object, let blur event target be that Document object's relevant global object.
    Otherwise, let blur event target be null.
  2. ...
  3. If blur event target is not null, fire a focus event named blur at blur event target, with related blur target as the related target.

and similar for "focus". The relevant global object will not be an element.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    interopImplementations are not interoperable with each othertopic: events

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions