Dealing with a colon in BeautifulSoup CSS selectors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Beautiful Soup |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Referencing this StackOverflow post: http://
Input HTML:
<div style="display: flex">
<div class="half" style="font-size: 0.8em;width: 33%;"> apple </div>
<div class="half" style="font-size: 0.8em;text-align: center;width: 28%;"> peach </div>
<div class="half" style="font-size: 0.8em;text-align: right;width: 33%;" title="nofruit"> cucumber </div>
</div>
Trying to use the following CSS selector:
div[
But getting:
NotImplemen
Tried to escape it with a backslash or use \3A instead - nothing worked
----
What is the correct way to use/escape a colon in attribute values in BeautifulSoup CSS selectors?
Thank you.
description: | updated |
description: | updated |
Changed in beautifulsoup: | |
status: | Fix Committed → Fix Released |
Fixed in revision 415.