diff options
Diffstat (limited to 'files/ru/web/web_components/html_imports/index.html')
-rw-r--r-- | files/ru/web/web_components/html_imports/index.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/files/ru/web/web_components/html_imports/index.html b/files/ru/web/web_components/html_imports/index.html new file mode 100644 index 0000000000..06dab35aba --- /dev/null +++ b/files/ru/web/web_components/html_imports/index.html @@ -0,0 +1,37 @@ +--- +title: HTML Импорты +slug: Web/Web_Components/HTML_Imports +translation_of: 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> |