summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2021-02-14 16:53:14 -0500
committerLeonard Richardson <leonardr@segfault.org>2021-02-14 16:53:14 -0500
commit34e0ce8a9dd43ada1c55b50a156fbce63b1e2ebb (patch)
treefdeb487c1f52e32c6eb4761cd2a530a24c10b8b0 /CHANGELOG
parent7201eecc09b51df5a0fb704670aa66bcc9d8e635 (diff)
NavigableString and its subclasses now implement the get_text()
method, as well as the properties .strings and .stripped_strings. These methods will either return the string itself, or nothing, so the only reason to use this is when iterating over a list of mixed Tag and NavigableString objects. [bug=1904309]
Diffstat (limited to 'CHANGELOG')
-rw-r--r--CHANGELOG10
1 files changed, 10 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index dd62294..9ce7bf3 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,9 @@
= 4.10.0 (unreleased)
+Beautiful Soup's official support for Python 2 ended on December 31st,
+2020. This release supports both Python 2 and Python 3, but there's no
+guarantee that this will hold for the next release.
+
* The behavior of methods like .get_text() and .strings now differs
depending on the type of tag. The change is visible with HTML tags
like <script>, <style>, and <template>. Starting in 4.9.0, methods
@@ -19,6 +23,12 @@
itself. That's because different tags now have different
understandings of what counts as 'text'. [bug=1906226] [bug=1868861]
+* NavigableString and its subclasses now implement the get_text()
+ method, as well as the properties .strings and
+ .stripped_strings. These methods will either return the string
+ itself, or nothing, so the only reason to use this is when iterating
+ over a list of mixed Tag and NavigableString objects. [bug=1904309]
+
* The 'html5' formatter now treats attributes whose values are the
empty string as HTML boolean attributes. Previously (and in other
formatters), an attribute value must be set as None to be treated as