- From: Michael[tm] Smith <notifications@github.com>
- Date: Sat, 10 Jun 2017 15:25:52 -0700
- To: w3c/ServiceWorker <ServiceWorker@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 10 June 2017 22:26:26 UTC
>>> - 1. Let |workerType| be the <{link/workertype}> attribute, or "<code>classic</code>" if the <{link/workertype}> attribute is omitted. >>> - 1. If |workerType| is not a valid {{WorkerType}} value, <a>queue a task</a> to <a>fire an event</a> named <code>error</code> at the <{link}> element, and abort these steps. >> >> Removing this condition entirely seems not desirable. Keep it as-is or at least abort would be needed I guess. > >I have started to think that the best thing to do is to no-op on invalid worker types. This means we need another HTML spec tweak (maybe update https://github.com/whatwg/html/pull/2740) to add a third state, _invalid_, and make that the invalid value default. Then this spec can no-op when it encounters the _invalid_ state. > whatwg/html#2740 is updated so you can now count on the attribute being in one of three states: classic, module, or invalid. OK, see 18e52c5 for my attempt at hooking into that -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/ServiceWorker/pull/1110#issuecomment-307593761
Received on Saturday, 10 June 2017 22:26:26 UTC