diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-08 18:47:23 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-08 18:47:23 -0500 |
commit | 33f0db7b3c4eef632700418068769b9cb762f708 (patch) | |
tree | 879f715a4ddc59f8826d790b55ccf74a31b797a5 /NEWS.txt | |
parent | 91f0756b0cdf07a118092e17b69168c86f40a4e0 (diff) |
Rationalized the treatment of multi-valued HTML attributes such as 'class'
Diffstat (limited to 'NEWS.txt')
-rw-r--r-- | NEWS.txt | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,19 @@ += 4.0.0b5 = + +* Rationalized Beautiful Soup's treatment of CSS class. A tag + belonging to multiple CSS classes is treated as having a list of + values for the 'class' attribute. Searching for a CSS class will + match *any* of the CSS classes. + + This actually affects all attributes that the HTML standard defines + as taking multiple values (class, rel, rev, archive, accept-charset, + and headers), but 'class' is by far the most common. + +* If you pass anything other than a dictionary as the second argument + to one of the find* methods, it'll assume you want to use that + object to search against a tag's CSS classes. Previously this only + worked if you passed in a string. + = 4.0.0b4 (20120208) = * Added BeautifulSoup.new_string() to go along with BeautifulSoup.new_tag() |