summaryrefslogtreecommitdiff
path: root/CHANGELOG
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-20 09:26:32 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-20 09:26:32 -0500
commitf850a8b0326a946711b65834296dfdfd47a48400 (patch)
treeb11493e3dd72179fab44f1ae84ce7deb24a3575d /CHANGELOG
parent0abdbf1cb0f3c272c9364f0b1ba9e7bac72a8e0f (diff)
downloadbeautifulsoup4-f850a8b0326a946711b65834296dfdfd47a48400.tar.gz
Test that empty-element tags that get children stop being empty-element tags.
Diffstat (limited to 'CHANGELOG')
-rw-r--r--CHANGELOG16
1 files changed, 16 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 5d13a6d..ef05813 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -17,6 +17,10 @@ work. Here are the renames:
* findPreviousSibling -> find_previous_sibling
* findPreviousSiblings -> find_previous_siblings
+Some attributes have also been renamed:
+
+ * Tag.isSelfClosing -> Tag.is_empty_element
+
== Generators are now properties ==
The generators have been given more sensible (and PEP 8-compliant)
@@ -51,6 +55,18 @@ and nothing else, then A.string is the same as B.string. So:
The value of a.string used to be None, and now it's "foo".
+== Empty-element tags ==
+
+Beautiful Soup's handling of empty-element tags (aka self-closing
+tags) has been improved, especially when parsing XML. Previously you
+had to explicitly specify a list of empty-element tags. You can still
+do that, but if you don't, Beautiful Soup now considers any empty tag
+to be an empty-element tag.
+
+The determination of empty-element-ness is now made at runtime rather
+than parse time. If you add a child to an empty-element tag, it stops
+being an empty-element tag.
+
== Entities are always converted to Unicode ==
An HTML or XML entity is always converted into the corresponding