blob: 71cfa2e1149a252ba2da64bb24dae6b26c49a954 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
---
title: HTML Импорты
slug: conflicting/Web/Web_Components
translation_of: Web/Web_Components/HTML_Imports
original_slug: Web/Web_Components/HTML_Imports
---
<div class="warning">
<p>Firefox will not ship <em>HTML Imports</em> in its current form. See this <a href="https://hacks.mozilla.org/2015/06/the-state-of-web-components/">status update</a> for more information. Until there is a consensus on the standard or alternative mechanisms are worked out, you can use a polyfill such as Google's <code><a href="https://github.com/webcomponents/webcomponentsjs">webcomponents.js</a></code>.</p>
</div>
<p><em>HTML Импорты</em> is intended to be the packaging mechanism for <a href="/en-US/docs/Web/Web_Components">web components</a>, but you can also use HTML Imports by itself.</p>
<div>You import an HTML file by using a <a href="/en-US/docs/Web/HTML/Element/link"><code><link></code></a> tag in an HTML document like this: </div>
<div> </div>
<pre><link rel="import" href="myfile.html"></pre>
<p><span style="line-height: 1.5;">The </span><code style="font-style: normal; line-height: 1.5;">import</code><span style="line-height: 1.5;"> </span><span style="line-height: 1.5;">link type </span><span style="line-height: 1.5;">is new.</span></p>
<h2 id="Specification">Specification</h2>
<table class="spec-table standard-table">
<tbody>
<tr>
<th scope="col">Specification</th>
<th scope="col">Status</th>
<th scope="col">Comment</th>
</tr>
<tr>
<td>{{SpecName('HTML Imports', "", "")}}</td>
<td>{{Spec2('HTML Imports')}}</td>
<td> </td>
</tr>
</tbody>
</table>
<p> </p>
|