mirror of
https://git.launchpad.net/beautifulsoup
synced 2025-10-06 00:12:49 +02:00
Corrected a typo in several translations of the documentation.
This commit is contained in:
@@ -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つは、検索の起点になる文字列の直接の親要素なので、それが返されました。
|
||||
|
@@ -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>
|
||||
|
@@ -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
|
||||
|
@@ -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()`` 方法搜索不到.
|
||||
|
Reference in New Issue
Block a user