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

Update HTML Modules explainer phrasing around allowed element types #878

Closed
wants to merge 1 commit into from

Conversation

trusktr
Copy link
Contributor

@trusktr trusktr commented May 15, 2020

I modified

<script> elements of type="module" (non-module scripts will cause HTML Module creation to fail)

to

<script> elements of type="module" (non-module scripts will cause HTML Module creation to fail) and <template> elements

Is this correct? It seems to be what the explainer hints at.

@trusktr
Copy link
Contributor Author

trusktr commented May 15, 2020

Nevermind, I was confused. At first I thought the original phrase meant only a <script> tag and no other tags could be in the HTML Module (which would be fairly useless). But I now saw other examples with arbitrary DOM elements besides the <script>.

New pull request: #880

@trusktr trusktr closed this May 15, 2020
@trusktr trusktr deleted the patch-1 branch May 15, 2020 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant