Skip to content

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

Open
@Kaiido

Description

@Kaiido

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).

Metadata

Metadata

Assignees

Labels

Event PhasesIssues for the Event Phases for Predictable DOM Performance explainer and design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions