diff options
author | Masahiro FUJIMOTO <mfujimot@gmail.com> | 2022-01-18 16:03:09 +0900 |
---|---|---|
committer | potappo <potappo@gmail.com> | 2022-01-22 17:21:04 +0900 |
commit | 6a954ff48e963f25a2a78ab128f2a9d64cf2a287 (patch) | |
tree | 10b1716749c60f1f7c515584b36c77ff93c75821 /files/ja | |
parent | 25037c40dca823f65b35ce71de7d0b0907799776 (diff) | |
download | translated-content-6a954ff48e963f25a2a78ab128f2a9d64cf2a287.tar.gz translated-content-6a954ff48e963f25a2a78ab128f2a9d64cf2a287.tar.bz2 translated-content-6a954ff48e963f25a2a78ab128f2a9d64cf2a287.zip |
2021/09/15 時点の英語版に基づき新規翻訳
Diffstat (limited to 'files/ja')
-rw-r--r-- | files/ja/web/api/htmltemplateelement/content/index.md | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/files/ja/web/api/htmltemplateelement/content/index.md b/files/ja/web/api/htmltemplateelement/content/index.md new file mode 100644 index 0000000000..a33175db8f --- /dev/null +++ b/files/ja/web/api/htmltemplateelement/content/index.md @@ -0,0 +1,41 @@ +--- +title: HTMLTemplateElement.content +slug: Web/API/HTMLTemplateElement/content +tags: + - API + - HTML DOM + - HTMLTemplateElement + - プロパティ + - リファレンス + - ウェブコンポーネント +browser-compat: api.HTMLTemplateElement.content +translation_of: Web/API/HTMLTemplateElement/content +--- +{{APIRef("Web Components")}} + +**`HTMLTemplateElement.content`** プロパティは、 `<template>` 要素のテンプレートの内容 ({{domxref("DocumentFragment")}}) を返します。 + +## 構文 + +```js +var documentFragment = templateElement.content +``` + +## 例 + +```js +var templateElement = document.querySelector("#foo"); +var documentFragment = templateElement.content.cloneNode(true); +``` + +## 仕様書 + +{{Specifications}} + +## ブラウザーの互換性 + +{{Compat}} + +## 関連情報 + +- {{domxref("HTMLTemplateElement")}} |