diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 09:54:42 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 09:54:42 -0500 |
commit | ae349fd47c627f8166526fed8906811707d2f4b2 (patch) | |
tree | 116edd8c1d9a7cf6348f784162fd2291608833c2 /beautifulsoup/__init__.py | |
parent | 158e76fd3e1005f6f5f932414cb741083d114cb6 (diff) | |
parent | 9f437ea591aeaf16d593350baf081315e56a8b73 (diff) |
Greatly improved the handling of empty-element tags.
Diffstat (limited to 'beautifulsoup/__init__.py')
-rw-r--r-- | beautifulsoup/__init__.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/beautifulsoup/__init__.py b/beautifulsoup/__init__.py index 922005c..ca32589 100644 --- a/beautifulsoup/__init__.py +++ b/beautifulsoup/__init__.py @@ -106,11 +106,9 @@ class BeautifulSoup(Tag): able to build a tree using 'start tag' events, 'end tag' events, 'data' events, and "done with data" events. - If you encounter a self-closing tag, call handle_starttag and then - handle_endtag, but note that the tag will not be displayed as a - self-closing tag unless you also have your builder's - isSelfClosingTag() implementation return True when passed the tag - name. + If you encounter an empty-element tag (aka a self-closing tag, + like HTML's <br> tag), call handle_starttag and then + handle_endtag. """ ROOT_TAG_NAME = u'[document]' |