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
- 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.
- ...
- 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.
What is the issue with the HTML Standard?
but in the focus update steps, we get
and similar for "focus". The relevant global object will not be an element.