Commit 5a76796
authored
Refactor
`onerror`, `onunhandledrejection`, `onrejectionhandled` and `self` are
all properties in the global scope that live in both `Window` and
`WorkerGlobalScope`. However, unlike other properties that apply to
both windows and workers, these properties are defined separately for
windows and for workers.
The current spec text deals with them by listing the property name and
linking in parenthesis to both definitions in the HTML spec. However,
in this edition of the Minimum Common API specification, we don't talk
a lot about workers, and we don't require runtimes to implement them.
This patch clarifies this by linking to the `Window` definitions in
the main list of properties, and adding a paragraph after that that
links to the `WorkerGlobalScope` defintions and specifies that
runtimes with workers should also support them.
Additionally, we remove an issue about exposing `self` on the
`ShadowRealmGlobalScope` in the future when whatwg/html#9893 lands,
since the ShadowRealm proposal seems to have lost a lot of steam
lately. We can always add a similar paragraph to the workers one if it
ever picks up pace again.onerror and similar properties for windows and workers (#102)1 parent cca1cbc commit 5a76796
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
| 116 | + | |
122 | 117 | | |
123 | 118 | | |
124 | 119 | | |
| |||
129 | 124 | | |
130 | 125 | | |
131 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| |||
0 commit comments