From 1f39941ea7b8d8a4fa7333708ccc7a101f34da99 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 29 Oct 2023 09:25:05 +0900 Subject: [PATCH] =?UTF-8?q?2023/10/02=20=E6=99=82=E7=82=B9=E3=81=AE?= =?UTF-8?q?=E8=8B=B1=E8=AA=9E=E7=89=88=E3=81=AB=E5=90=8C=E6=9C=9F=20(#1667?= =?UTF-8?q?7)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 2023/10/02 時点の英語版に同期 * Update files/ja/web/xpath/comparison_with_css_selectors/index.md Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * reviewdogの修正を反映 --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- .../comparison_with_css_selectors/index.md | 50 ++++--------------- 1 file changed, 11 insertions(+), 39 deletions(-) diff --git a/files/ja/web/xpath/comparison_with_css_selectors/index.md b/files/ja/web/xpath/comparison_with_css_selectors/index.md index 07240ba074d89b..646df4c5ebf419 100644 --- a/files/ja/web/xpath/comparison_with_css_selectors/index.md +++ b/files/ja/web/xpath/comparison_with_css_selectors/index.md @@ -1,47 +1,19 @@ --- title: CSS セレクターと XPath の比較 slug: Web/XPath/Comparison_with_CSS_selectors +l10n: + sourceCommit: bb652aaf3e38f3c7fef970a62f813047dffac879 --- -{{XSLTRef}} +{{XsltSidebar}} この記事では、ウェブ開発者が適材適所のツールを選択できるように、CSSセレクターとXPathの違いを説明することを目的としています。 -| [XPath 機能](/ja/docs/Web/XPath) | [相当する CSS](/ja/docs/Web/CSS/CSS_Selectors) | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | -| [`ancestor`](/ja/docs/Web/XPath/Axes/ancestor), [`parent`](/ja/docs/Web/XPath/Axes/parent) or [`preceding-sibling`](/ja/docs/Web/XPath/Axes/preceding-sibling) 軸 | {{CSSxRef(":has",":has()")}} セレクター {{experimental_inline}} | -| [`attribute`](/ja/docs/Web/XPath/Axes/attribute) 軸 | [属性セレクター](/ja/docs/Web/CSS/Attribute_selectors) | -| [`child`](/ja/docs/Web/XPath/Axes/child) 軸 | [子結合子](/ja/docs/Web/CSS/Child_combinator) | -| [`descendant`](/ja/docs/Web/XPath/Axes/descendant) 軸 | [子孫結合子](/ja/docs/Web/CSS/Descendant_combinator) | -| [`following-sibling`](/ja/docs/Web/XPath/Axes/following-sibling) 軸 | [一般兄弟結合子](/ja/docs/Web/CSS/General_sibling_combinator)または[隣接兄弟結合子](/ja/docs/Web/CSS/Adjacent_sibling_combinator) | -| [`self`](/ja/docs/Web/XPath/Axes/self) 軸 | {{CSSxRef(":scope")}} または {{CSSxRef(":host")}} セレクター^ | - - +| [XPath 機能](/ja/docs/Web/XPath) | [相当する CSS](/ja/docs/Web/CSS/CSS_selectors) | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ | +| [`ancestor`](/ja/docs/Web/XPath/Axes#ancestor), [`parent`](/ja/docs/Web/XPath/Axes#parent) or [`preceding-sibling`](/ja/docs/Web/XPath/Axes#preceding-sibling) 軸 | {{CSSxRef(":has",":has()")}} セレクター {{experimental_inline}} | +| [`attribute`](/ja/docs/Web/XPath/Axes#attribute) 軸 | [属性セレクター](/ja/docs/Web/CSS/Attribute_selectors) | +| [`child`](/ja/docs/Web/XPath/Axes#child) 軸 | [子結合子](/ja/docs/Web/CSS/Child_combinator) | +| [`descendant`](/ja/docs/Web/XPath/Axes#descendant) 軸 | [子孫結合子](/ja/docs/Web/CSS/Descendant_combinator) | +| [`following-sibling`](/ja/docs/Web/XPath/Axes#following-sibling) 軸 | [後続兄弟結合子](/ja/docs/Web/CSS/Subsequent-sibling_combinator)または[次兄弟結合子](/ja/docs/Web/CSS/Next-sibling_combinator) | +| [`self`](/ja/docs/Web/XPath/Axes#self) 軸 | {{CSSxRef(":scope")}} または {{CSSxRef(":host")}} セレクター^ |