nth-of-type documentation typo

Bug #1519200 reported by gene_wood
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

The documentation has a typo

http://www.crummy.com/software/BeautifulSoup/bs4/doc/#css-selectors

The documentation shows an example of :

soup.select("p nth-of-type(3)")
# [<p class="story">...</p>]

which should read

soup.select("p:nth-of-type(3)")
# [<p class="story">...</p>]

to prevent the error

"ValueError: Unsupported or invalid CSS selector"

Related branches

Changed in beautifulsoup:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.