ValueError on CSS selectors with dashes
Bug #1276211 reported by
Francisco Canas
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Info:
Name: beautifulsoup4
Version: 4.3.2
Location: /usr/lib/
Description:
Calling the select() method on tags with dashes produces:
ValueError: Unsupported or invalid CSS selector: "dashed-tag"
The find_all() method does not exhibit this behaviour, it works as expected, so I didn't think this was intended behaviour for select().
Steps to reproduce:
I have attached a short script to reproduce it.
thanks.
Changed in beautifulsoup: | |
status: | New → Fix Committed |
Changed in beautifulsoup: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Just in case anyone is interested in adding dashed tag support to the select() method: Here's a patch showing the needed changes to elements.py and relevant unit tests.