← Back to release summary

SharedWorkerConnectEventEmptyStringData

Category
Miscellaneous
Type
No developer-visible change
Status
Proposed (Chrome Proposed)
Intent stage
None

WPT details: https://wpt.fyi/results/workers/constructors/SharedWorker/connect-event.html

Summary

The data attribute of the SharedWorker connect event is now initialized to the empty string, instead of null, as per the HTML spec.

Motivation

The HTML spec requires the data attribute of the SharedWorker connect event to be initialized to the empty string, but Chromium did not initialize it that way, so its behavior differed from the spec and from Firefox and Safari.

Standards & signals

Ecosystem

View on chromestatus.com