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

CR/LF fix at end of document #851

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 5 additions & 5 deletions proposals/html-modules-proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,17 +200,17 @@ This also solves the issue of being unable to efficiently share template HTML be

Note that for 'import' statements, we will need to mime-sniff the URL for the import and use the applicable parser based on mime type.

Additionally, we propose that the HTML Module's document be the implicit default export of the module. That is, during the HTML Module's instantiation phase, we run an implicit `export default document` (which can be overridden by inline script if desired). This would allow usage like the following example, where declarative content of a module can be consumed without the use of inline script elements in the module to specify exports:
 
Additionally, we propose that the HTML Module's document be the implicit default export of the module. That is, during the HTML Module's instantiation phase, we run an implicit `export default document` (which can be overridden by inline script if desired). This would allow usage like the following example, where declarative content of a module can be consumed without the use of inline script elements in the module to specify exports.

Example:
 
**import.html **

**import.html**

> ```html
> <template id="myCustomElementTemplate"></template>
> ```

**main.html:**
**main.html**

> ```js
> import importedDoc from "import.html"
Expand Down