html5lib can set a multivalued attribute twice, and the tree builder can't handle that

Bug #1019603 reported by Leonard Richardson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Beautiful Soup
Fix Released
Undecided
Unassigned

Bug Description

As seen here:

https://groups.google.com/forum/#!msg/beautifulsoup/lcgw7rq152A/x1QhmKaxcGkJ

When rearranging the parse tree, html5lib calls setAttributes multiple times. The first call split the value of the 'class' attribute into a list, and the second call passes in that list. The tree builder needs to be able to handle an incoming attribute value that's already a list.

Revision history for this message
Leonard Richardson (leonardr) wrote :

Fixed in revision 239.

Changed in beautifulsoup:
status: New → Fix Committed
Changed in beautifulsoup:
status: Fix Committed → 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.