- From: Takayoshi Kochi <notifications@github.com>
- Date: Mon, 17 Apr 2017 19:47:55 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 18 April 2017 02:48:29 UTC
@jourdanritchey I think you misunderstand HTML Imports - it is not for importing inline HTML snippet. HTML Import (`<link rel="import" href="..">`) loads referenced HTML file but its document is separate from the main document, although they are connected via `link.import` property. So it doesn't work as what you expected in Chrome. Usually primary usage for HTML Imports is to load a definition of web components, by running `<script>` in the imported HTML file, using some `<template>`s inside its body. HTML Imports' contents are never rendered unless some script explicitly moves the content into the main document. What you proposed is like what SSI (server-side include) does in client side, without `<iframe>`? -- 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/webcomponents/issues/636#issuecomment-294658891
Received on Tuesday, 18 April 2017 02:48:29 UTC