Cannot easily create soup.new_tag('meta', name="anything"...)
Bug #1779276 reported by
griswolf
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
BeautifulSoup already uses the "name" parameter to create the new tag. For searching, we can use the idiom find_all(
Work around:
m = soup.new_
m['name'] = 'some-name'
description: | updated |
Changed in beautifulsoup: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Revision 464 allows a dictionary of 'attrs' to be passed into BeautifulSoup. new_tag.