reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11.08k stars 7.56k forks source link

Synthetic Events: Document deviations from spec #938

Open danburzo opened 6 years ago

danburzo commented 6 years ago

On the Synthetic Events page, I think there should be a Note whenever the React behavior deviates from the spec.

For example, onBlur bubbles. And, if I remember correctly from when I was studying rich-text editing, the onSelect event is also different from the selectDOM event?

Also, would it be overkill to put them in three-column tables, like this?

Synthetic Event DOM Event Notes
onBlur blur In contrast to the DOM event specification, onBlur will bubble.
AlmeroSteyn commented 6 years ago

This also happens for onFocus, so it should be added.

I think that, in the absence of focusin and focusout events, this is quite important to mention as these events feature strongly in making things accessible.