aboutsummaryrefslogtreecommitdiff
path: root/files/ja
diff options
context:
space:
mode:
authorMasahiro Fujimoto <mfujimot@gmail.com>2022-02-04 22:18:11 +0900
committerMasahiro FUJIMOTO <mfujimot@gmail.com>2022-02-18 09:23:54 +0900
commit28a027b78e487dbc6827a37cf26a7998e8664343 (patch)
treec6ebf1a0fd3ea18c14f8f2e6193150cbf5fab668 /files/ja
parentd4f134ab6e01fc198c1fe9adca4826adb9c85068 (diff)
downloadtranslated-content-28a027b78e487dbc6827a37cf26a7998e8664343.tar.gz
translated-content-28a027b78e487dbc6827a37cf26a7998e8664343.tar.bz2
translated-content-28a027b78e487dbc6827a37cf26a7998e8664343.zip
更新準備
Diffstat (limited to 'files/ja')
-rw-r--r--files/ja/web/api/documentfragment/queryselectorall/index.md53
1 files changed, 53 insertions, 0 deletions
diff --git a/files/ja/web/api/documentfragment/queryselectorall/index.md b/files/ja/web/api/documentfragment/queryselectorall/index.md
new file mode 100644
index 0000000000..a5fc005a4b
--- /dev/null
+++ b/files/ja/web/api/documentfragment/queryselectorall/index.md
@@ -0,0 +1,53 @@
+---
+title: DocumentFragment.querySelectorAll()
+slug: Web/API/DocumentFragment/querySelectorAll
+tags:
+ - API
+ - DOM
+ - DocumentFragment
+ - Method
+browser-compat: api.DocumentFragment.querySelectorAll
+---
+{{ApiRef("DOM")}}
+
+The **`DocumentFragment.querySelectorAll()`** method returns a
+{{domxref("NodeList")}} of elements within the {{domxref("DocumentFragment")}} (using
+depth-first pre-order traversal of the document's nodes) that matches the specified
+group of selectors.
+
+If the selectors specified in parameter are invalid a {{domxref("DOMException")}} with
+a `SYNTAX_ERR` value is raised.
+
+## Syntax
+
+```js
+elementList = documentfragment.querySelectorAll(selectors);
+```
+
+### Parameters
+
+- _selectors_
+ - : Is a {{domxref("DOMString")}} containing one or more CSS selectors separated by
+ commas.
+
+## Examples
+
+This example returns a list of all `div` elements within the
+`DocumentFragment` with a class of either "`note`" or
+"`alert`":
+
+```js
+var matches = documentfrag.querySelectorAll("div.note, div.alert");
+```
+
+## Specifications
+
+{{Specifications}}
+
+## Browser compatibility
+
+{{Compat}}
+
+## See also
+
+- The {{domxref("DocumentFragment")}} interface it belongs to.