diff options
author | Leonard Richardson <leonardr@segfault.org> | 2020-05-17 08:29:57 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2020-05-17 08:29:57 -0400 |
commit | 83c8c3a029d29fd833a8137b205f4ca78a4b1c26 (patch) | |
tree | e58982e78094c5032ae105d5f3b45ea83ae49193 /bs4/element.py | |
parent | 6218e871dd247274823d7a6d5be413544bcc8f19 (diff) |
Added a keyword argument on_duplicate_attribute to the
BeautifulSoupHTMLParser constructor (used by the html.parser tree
builder) which lets you customize the handling of markup that
contains the same attribute more than once, as in:
<a href="url1" href="url2"> [bug=1878209]
Diffstat (limited to 'bs4/element.py')
-rw-r--r-- | bs4/element.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/element.py b/bs4/element.py index 1744beb..4947be9 100644 --- a/bs4/element.py +++ b/bs4/element.py @@ -1757,7 +1757,7 @@ class Tag(PageElement): if l: r = l[0] return r - findChild = find + findChild = find #BS2 def find_all(self, name=None, attrs={}, recursive=True, text=None, limit=None, **kwargs): |