Re: [heycam/webidl] Editorial: Better explanation of the Global extended attribute. (#749)

@TimothyGu approved this pull request.



> +<dfn id="dfn-global-name" export>global names</dfn> for the [=interface=]:
+
+<dl class="switch">
+     :  If the [{{Global}}] [=extended attribute=] [=takes an identifier=]
+     :: « the given [=identifier=] »
+     :  If the [{{Global}}] [=extended attribute=] [=takes an identifier list=]
+     :: the identifier list
+</dl>
+
+The [{{Global}}] extended attribute must be one of the forms given above.
+
+Note: The [=global names=] for the [=interface=] are the [=identifiers=] that can be used to
+reference it in the [{{Exposed}}] [=extended attribute=].
+A single name can be shared across multiple different global interfaces,
+allowing an interface to more easily use [{{Exposed}}] to expose itself to all of them at once.
+For example, "Worker" is used to refer to several distinct types of threading-related

```suggestion
For example, "<code>Worker</code>" is used to refer to several distinct types of threading-related
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/749#pullrequestreview-402784335

Received on Wednesday, 29 April 2020 15:31:33 UTC