Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restrict the extended attributes for partial interfaces. #620

Merged
merged 1 commit into from
Jan 28, 2019
Merged

Restrict the extended attributes for partial interfaces. #620

merged 1 commit into from
Jan 28, 2019

Conversation

Ms2ger
Copy link
Member

@Ms2ger Ms2ger commented Jan 16, 2019

It seems like a bad idea to allow [Global] on a partial interface.

The behavior of [Exposed] and [SecureContext] on partial interfaces is already
defined in the relevant algorithms.

The behavior of [OverrideBuiltins] is defined here with the same vague wording
used before. It might be better to disentangle the concept of an interface and
its syntactical structure.

Fixes #154.


Preview | Diff

It seems like a bad idea to allow [Global] on a partial interface.

The behavior of [Exposed] and [SecureContext] on partial interfaces is already
defined in the relevant algorithms.

The behavior of [OverrideBuiltins] is defined here with the same vague wording
used before. It might be better to disentangle the concept of an interface and
its syntactical structure.

Fixes #154.
@domenic
Copy link
Member

domenic commented Jan 16, 2019

Are there any existing usages of [OverrideBuiltins] on a partial interface? My suspicion is not, in which case, it'd be better to ban it.

@Ms2ger
Copy link
Member Author

Ms2ger commented Jan 16, 2019

[OverrideBuiltins]
partial interface Document {

@domenic
Copy link
Member

domenic commented Jan 16, 2019

Fair :/. I wonder if moving the annotation to DOM would be an improvement or just weird to have things spread out. Probably not worth addressing at this time.

@domenic domenic merged commit a93f5b6 into whatwg:master Jan 28, 2019
@annevk
Copy link
Member

annevk commented Jan 29, 2019

Given it's on the legacy list per #350 it doesn't seem worth bothering about it too much unless it starts blocking something else.

@Ms2ger Ms2ger deleted the partial-ext-attributes branch January 29, 2019 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants