Skip to content

Commit

Permalink
2023/10/02 時点の英語版に同期 (#16677)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
mfuji09 and github-actions[bot] authored Oct 29, 2023
1 parent dd071e0 commit 1f39941
Showing 1 changed file with 11 additions and 39 deletions.
50 changes: 11 additions & 39 deletions files/ja/web/xpath/comparison_with_css_selectors/index.md
Original file line number Diff line number Diff line change
@@ -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")}} セレクター^ |

<section id="Quick_links">
<ol>
<li><strong><a href="/ja/docs/Web/XSLT">XSLT</a></strong></li>
<li><strong><a href="/ja/docs/Web/EXSLT">EXSLT</a></strong></li>
<li><strong><a href="/ja/docs/Web/XPath">XPath</a></strong></li>
<li class="toggle">
<details open>
<summary>ガイド</summary>
<ol>
<li><a href="/ja/docs/Web/XPath/Comparison_with_CSS_selectors">CSS セレクターと XPath の比較</a>
</li>
<li><a href="/ja/docs/Web/XPath/Snippets">XPath スニペット</a></li>
</ol>
</details>
</li>
<li class="toggle">
<details open>
<summary><a href="/ja/docs/Web/XPath/Axes">XPath 軸</a></summary>
{{ListSubpagesForSidebar("/ja/docs/Web/XPath/Axes")}}
</details>
</li>
<li class="toggle">
<details open>
<summary><a href="/ja/docs/Web/XPath/Functions">XPath 関数</a></summary>
{{ListSubpagesForSidebar("/ja/docs/Web/XPath/Functions")}}
</details>
</li>
</ol>
</section>
| [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")}} セレクター^ |

0 comments on commit 1f39941

Please sign in to comment.