HTML5 elements + BeautifulSoup

137 views
Skip to first unread message

pamela

unread,
Dec 6, 2010, 5:18:49 AM12/6/10
to beautifulsoup
I found peculiar results when using BeautifulSoup to parse an HTML5
page, and discovered I could fix that by adding the HTML5 tags to the
source - in my case, I added <section> and <header> to nestable block
elements section to fix it, but there are a number of new tags that
should be added besides those: http://www.w3schools.com/html5/html5_new_elements.asp

Thanks for the lib! (And ignore this message if this is already fixed
in a newer version)

Reply all
Reply to author
Forward
0 new messages