diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-15 17:03:37 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-15 17:03:37 -0500 |
commit | 87747b712cfe63d173332f06ee1ba2bf9adf9ce5 (patch) | |
tree | 1829d574032666de65230c2c9df6f1aa522c1b05 /NEWS.txt | |
parent | ac197c5ad0ffe0795436cb54e0766640d12c6a31 (diff) |
Added a kind of hacky way to interpret the restriction class='foo bar'. Stop generating a space before the slash that closes an empty-element tag.
Diffstat (limited to 'NEWS.txt')
-rw-r--r-- | NEWS.txt | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -3,6 +3,11 @@ * The value of multi-valued attributes like "class" are always turned into a list, even if there's only one value. +* Stopped generating a space before the slash that closes an + empty-element tag. This may come back if I add a special XHTML mode + (http://www.w3.org/TR/xhtml1/#C_2), but right now it's pretty + useless. + * Passing text along with tag-specific arguments to a find* method: find("a", text="Click here") @@ -15,6 +20,10 @@ partially disconnected tree. Generally cleaned up the html5lib tree builder. +* If you restrict a multi-valued attribute like "class" to a string + that contains spaces, Beautiful Soup will only consider it a match + if the values correspond to that specific string. + = 4.0.0b5 (20120209) = * Rationalized Beautiful Soup's treatment of CSS class. A tag |