From 3437ea81b374a42eb511fd9c459eef0d46408529 Mon Sep 17 00:00:00 2001 From: Hiroshige Hayashizaki Date: Mon, 24 Jun 2019 18:35:36 -0700 Subject: [PATCH] Fix a comment about unblock timing --- spec.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.bs b/spec.bs index fedda38..ca90869 100644 --- a/spec.bs +++ b/spec.bs @@ -127,7 +127,6 @@ Each {{Document}} has an acquiring import maps boolean 1. If |result| is a failure, then set [=HTMLScriptElement/the script's import map=] to null. 1. Otherwise, set [=HTMLScriptElement/the script's import map=] to the result of [=parsing an import map string=], given |result| and |base URL|. 1. [=The import map is ready=]. -

If this makes all {{HTMLScriptElement}}s in [=Document/list of pending import map scripts=] [=HTMLScriptElement/the import map is ready|ready=], it will (asynchronously) unblock any [=wait for import maps=] algorithm instances.

1. Return. - Insert the following before prepare a script step 25.2: - If the script's type is "`importmap`", then: @@ -146,6 +145,7 @@ Each {{Document}} has an acquiring import maps boolean 1. If the element is not the first element in [=Document/list of pending import map scripts=] to which it was added above, then return without executing the script yet. 1. Register: [=/Register an import map=] given the first element of [=Document/list of pending import map scripts=]. 1. Remove the first element of [=Document/list of pending import map scripts=]. +

If this makes the [=Document/list of pending import map scripts=] empty, it will (asynchronously) unblock any [=wait for import maps=] algorithm instances.

1. If the [=Document/list of pending import map scripts=] is still not empty and the first entry's [=HTMLScriptElement/the import map is ready=], then jump back to the step labeled Register.