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

Properly instantiate inline module scripts #2604

Merged
merged 1 commit into from
May 12, 2017

Conversation

domenic
Copy link
Member

@domenic domenic commented Apr 28, 2017

This moves the latter half of the "internal module script graph fetching
procedure" into "fetch the descendants of a module script", which is
then renamed "fetch the descendants of and instantiate a module script".
Then, the inline script code can properly call this new algorithm to
take care of everything once it has an initial module script prepared
from the inline script source.

Fixes #2544.


This is on top of #2595 so shouldn't be merged until that is.

Tests for this exist all over https://github.com/w3c/web-platform-tests/tree/master/html/semantics/scripting-1/the-script-element/module, since without it inline module scripts just don't work at all.

If you want to review this, review only the second commit. Also be aware that a lot of the diff is just moving text around, so it's not as big of a change as it seems.

A preview of this, along with #2595 and #2625, is at https://dl.dropboxusercontent.com/u/20140634/modules-all-better/index.html

Copy link

@GeorgNeis GeorgNeis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rubberstamp lgtm to unblock larger revisions

This moves the latter half of the "internal module script graph fetching
procedure" into "fetch the descendants of a module script", which is
then renamed "fetch the descendants of and instantiate a module script".
Then, the inline script code can properly call this new algorithm to
take care of everything once it has an initial module script prepared
from the inline script source.

Fixes #2544.
@domenic domenic force-pushed the make-inline-module-scripts-actually-work branch from d72655e to b520372 Compare May 12, 2017 16:51
@domenic domenic merged commit 3a3405a into master May 12, 2017
@domenic domenic deleted the make-inline-module-scripts-actually-work branch May 12, 2017 16:55
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