summaryrefslogtreecommitdiff
path: root/NEWS.txt
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2012-02-08 18:47:23 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2012-02-08 18:47:23 -0500
commit33f0db7b3c4eef632700418068769b9cb762f708 (patch)
tree879f715a4ddc59f8826d790b55ccf74a31b797a5 /NEWS.txt
parent91f0756b0cdf07a118092e17b69168c86f40a4e0 (diff)
Rationalized the treatment of multi-valued HTML attributes such as 'class'
Diffstat (limited to 'NEWS.txt')
-rw-r--r--NEWS.txt16
1 files changed, 16 insertions, 0 deletions
diff --git a/NEWS.txt b/NEWS.txt
index 8515b80..31cfdbe 100644
--- a/NEWS.txt
+++ b/NEWS.txt
@@ -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()