aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/workerglobalscope/index.html
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-05-28 12:36:36 -0700
committerGitHub <noreply@github.com>2021-05-28 12:36:36 -0700
commit05a7219ba9605649cb6daa281e26209eaa73adf0 (patch)
tree63c9443b214d52257ff4ef5546f9e70c8b7365cd /files/zh-cn/web/api/workerglobalscope/index.html
parent220a7d23b0755acc06146c1262aa09ba22d6e3b1 (diff)
downloadtranslated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.gz
translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.tar.bz2
translated-content-05a7219ba9605649cb6daa281e26209eaa73adf0.zip
fix MacroWrongXRefError flaws for some domxref calls (#1018)
Diffstat (limited to 'files/zh-cn/web/api/workerglobalscope/index.html')
-rw-r--r--files/zh-cn/web/api/workerglobalscope/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/api/workerglobalscope/index.html b/files/zh-cn/web/api/workerglobalscope/index.html
index 8d9fef8dd7..60d0b88373 100644
--- a/files/zh-cn/web/api/workerglobalscope/index.html
+++ b/files/zh-cn/web/api/workerglobalscope/index.html
@@ -50,18 +50,18 @@ translation_of: Web/API/WorkerGlobalScope
<dl>
<dt>{{domxref("WorkerGlobalScope.onerror")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("error")}} event is raised.</dd>
+ <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("error")}} event is raised.</dd>
<dt>{{domxref("WorkerGlobalScope.onoffline")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd>
+ <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("offline")}} event is raised.</dd>
<dt>{{domxref("WorkerGlobalScope.ononline")}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("online")}} event is raised.</dd>
+ <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("online")}} event is raised.</dd>
<dt>{{domxref("WorkerGlobalScope.onlanguagechange")}}</dt>
- <dd>An {{domxref("EventHandler")}} fired at the global/worker scope object when the user's preferred languages change.</dd>
+ <dd>An {{event("Event_handlers", "event handler")}} fired at the global/worker scope object when the user's preferred languages change.</dd>
</dl>
<dl>
<dt>{{domxref("WorkerGlobalScope.onclose")}} {{non-standard_inline}}</dt>
- <dd>Is an {{domxref("EventHandler")}} representing the code to be called when the {{event("close")}} event is raised.</dd>
+ <dd>Is an {{event("Event_handlers", "event handler")}} representing the code to be called when the {{event("close")}} event is raised.</dd>
<dt>{{domxref("WorkerGlobalScope.onrejectionhandled")}} {{non-standard_inline}}</dt>
<dd>An event handler for handled <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" title="The Promise object is used for deferred and asynchronous computations. A Promise represents an operation that hasn't completed yet, but is expected in the future."><code>Promise</code></a> rejection events.</dd>
<dt>{{domxref("WorkerGlobalScope.onunhandledrejection")}} {{non-standard_inline}}</dt>