MicrosoftEdge / MicrosoftEdge/MSEdgeExplainers
[EventPhases] Should reads after writes throw or return stale data?
Open
@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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.