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

tabatkins commented on this pull request.



> +<dfn id="dfn-global-name" export>global names</dfn> for the [=interface=]:
+
+<dl class="switch">
+     :  If the [{{Global}}] [=extended attribute=] [=takes no arguments=]
+     :: « the [=identifier=] of the [=interface=] itself »
+     :  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 used to reference multiple global interfaces.

```suggestion
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.
```

-- 
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-255870425

Received on Friday, 28 June 2019 16:48:43 UTC