← Back to release summary

Make PointerEvent.fromElement and PointerEvent.toElement null

Category
User input
Type
New or changed feature
Status
Enabled by default (Chrome 68)
Intent stage
None

Summary

PointerEvents won't report non-standard and inconsistent values for fromElement and toElement fields. Instead, they will always report null (like Edge and Firefox). In MouseEvents (from which PointerEvents inherit these fields), .fromElement and .toElement are non-standard, and have been inconsistent among major browsers for many years. Moreover, we have standard and consistent alternatives already: .target and .relatedTarget. Recently the PointerEvents spec has been updated accordingly.

Standards & signals

Docs: https://github.com/w3c/pointerevents/issues/167

Samples: https://output.jsbin.com/gajuhas

View on chromestatus.com