MicrosoftEdge / MicrosoftEdge/MSEdgeExplainers

[EventPhases] Should reads after writes throw or return stale data?

Open
#1,059 1 comment 0 reactions 1 assignee View on GitHub

@slightlyoff is already working on this.

Since Jun 10, 2025.

Event Phases
Dominant language
HTML
Stars
1.4k
Forks
286
Avg merge
3d 1h
Merged PRs (30d)
8

Description

I believe returning stale data is the safest choice here.
There are a lot of setters that will also trigger a read-back (e.g. scrollLeft & friends, even methods like scrollTo()) if reading in the write phase throws, these would become unusable.


Ps: This refers to https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/EventPhases/explainer.md (there is no label for that proposal yet).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.