aboutsummaryrefslogtreecommitdiff
path: root/files/ja
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja')
-rw-r--r--files/ja/web/api/htmltemplateelement/content/index.md41
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")}}