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

Tweak <link>.workerType reflection #2740

Merged
merged 1 commit into from
Jun 11, 2017
Merged

Tweak <link>.workerType reflection #2740

merged 1 commit into from
Jun 11, 2017

Conversation

domenic
Copy link
Member

@domenic domenic commented Jun 6, 2017

9c7da49 removed the idea of using
enumerations in the IDL to case-sensitively reflect properties, but
forgot to switch <link>'s workerType attribute to DOMString.

Tests: web-platform-tests/wpt#6164 #

@domenic
Copy link
Member Author

domenic commented Jun 8, 2017

Marking "do not merge yet" per w3c/ServiceWorker#1110 (comment) as I should update this to also add an invalid state.

@domenic domenic added do not merge yet Pull request must not be merged per rationale in comment topic: hyperlink topic: workers labels Jun 8, 2017
@domenic domenic removed the do not merge yet Pull request must not be merged per rationale in comment label Jun 8, 2017
@domenic
Copy link
Member Author

domenic commented Jun 8, 2017

Updated and ready for a new round of review

9c7da49 removed the idea of using
enumerations in the IDL to case-sensitively reflect properties, but
forgot to switch <link>'s workerType attribute to DOMString. This fixes
that.

Additionally, this introduces the invalid state as the invalid value
default, so that service workers' processing model can ignore invalid
values instead of treating them as classic scripts (similar to
<script>'s type="" attribute).
@domenic domenic changed the title Fix <link>.workerType IDL Tweak <link>.workerType reflection Jun 8, 2017
sideshowbarker added a commit to w3c/ServiceWorker that referenced this pull request Jun 10, 2017
This uses the "invalid" state of <link workertype> introduced in
whatwg/html#2740
@domenic domenic merged commit 8103235 into master Jun 11, 2017
@domenic domenic deleted the workertype branch June 11, 2017 04:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants