diff options
author | Leonard Richardson <leonardr@segfault.org> | 2023-01-23 11:27:18 -0500 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2023-01-23 11:27:18 -0500 |
commit | d84821852a32d1314a8fcb5fa4180e3beecea39c (patch) | |
tree | 915b376447d213a6946c856081b63a7291d155f6 | |
parent | e8008c8eb15f87543bc88c44e13fc921bf4b0212 (diff) |
Corrected a typo in several translations of the documentation.
-rw-r--r-- | doc.jp/index.html | 2 | ||||
-rw-r--r-- | doc.ko/index.html | 2 | ||||
-rw-r--r-- | doc.ptbr/source/index.rst | 2 | ||||
-rw-r--r-- | doc.zh/source/index.rst | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/doc.jp/index.html b/doc.jp/index.html index 7f5d8e6..158f6d9 100644 --- a/doc.jp/index.html +++ b/doc.jp/index.html @@ -1311,7 +1311,7 @@ a_string.find_parent("p") # <a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>; # and they lived at the bottom of a well.</p> -a_string.find_parents("p", class="title") +a_string.find_parents("p", class_="title") # []</pre> </div> <p>3つの<a>タグのうちの1つは、検索の起点になる文字列の直接の親要素なので、それが返されました。 diff --git a/doc.ko/index.html b/doc.ko/index.html index 48f4de9..c474071 100644 --- a/doc.ko/index.html +++ b/doc.ko/index.html @@ -1225,7 +1225,7 @@ a_string.find_parent("p") # <a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>; # and they lived at the bottom of a well.</p> -a_string.find_parents("p", class="title") +a_string.find_parents("p", class_="title") # []</pre> </div> <p>세가지 <a> 태그 중 하나는 해당 문자열의 직계 부모이다. 그래서 탐색해서 그것을 찾는다. 세가지 <p> 태그 중 하나는 그 문자열의 방계 부모이고, 그것도 역시 잘 탐색한다. CSS 클래스가“title”인 <p> 태그가 문서 <cite>어딘가에</cite> 존재하지만, 그것은 이 문자열의 부모가 아니므로, <tt class="docutils literal"><span class="pre">find_parents()</span></tt>로 부모를 찾을 수 없다.</p> diff --git a/doc.ptbr/source/index.rst b/doc.ptbr/source/index.rst index 2b6a5f9..f5eb849 100644 --- a/doc.ptbr/source/index.rst +++ b/doc.ptbr/source/index.rst @@ -1542,7 +1542,7 @@ Vamos experimentá-los: começando por uma string "enterrada" no documento # <a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>; # and they lived at the bottom of a well.</p> - a_string.find_parents("p", class="title") + a_string.find_parents("p", class_="title") # [] Uma das três tags <a> é diretamente um nível superior da string em diff --git a/doc.zh/source/index.rst b/doc.zh/source/index.rst index 228ef88..990053f 100644 --- a/doc.zh/source/index.rst +++ b/doc.zh/source/index.rst @@ -1382,7 +1382,7 @@ find_parent( `name`_ , `attrs`_ , `recursive`_ , `string`_ , `**kwargs`_ ) # <a class="sister" href="http://example.com/tillie" id="link3">Tillie</a>; # and they lived at the bottom of a well.</p> - a_string.find_parents("p", class="title") + a_string.find_parents("p", class_="title") # [] 文档中的一个<a>标签是是当前叶子节点的直接父节点,所以可以被找到.还有一个<p>标签,是目标叶子节点的间接父辈节点,所以也可以被找到.包含class值为"title"的<p>标签不是不是目标叶子节点的父辈节点,所以通过 ``find_parents()`` 方法搜索不到. |