diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 10:39:56 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-20 10:39:56 -0500 |
commit | 232311a2f682e59078012e5b05e382982862f627 (patch) | |
tree | 60bd21949b54bdb5588ecce31a3bb89e40617692 /beautifulsoup/builder/__init__.py | |
parent | ae349fd47c627f8166526fed8906811707d2f4b2 (diff) | |
parent | f2532b1d63bd4a4d2be6ad9a4dce5eea03f43e7a (diff) |
I couldn't get the XML parser to parse CDATA as CData objects, but at least I documented the current behavior.
Diffstat (limited to 'beautifulsoup/builder/__init__.py')
-rw-r--r-- | beautifulsoup/builder/__init__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/beautifulsoup/builder/__init__.py b/beautifulsoup/builder/__init__.py index deaa613..9ffa9ef 100644 --- a/beautifulsoup/builder/__init__.py +++ b/beautifulsoup/builder/__init__.py @@ -28,12 +28,12 @@ class TreeBuilder(Entities): The final markup may or may not actually present this tag as self-closing. - For instance: an HTML builder does not consider a <p> tag to - be an empty-element tag (it's not in empty_element_tags). This - means an empty <p> tag will be presented as "<p></p>", not - "<p />". + For instance: an HTMLBuilder does not consider a <p> tag to be + an empty-element tag (it's not in + HTMLBuilder.empty_element_tags). This means an empty <p> tag + will be presented as "<p></p>", not "<p />". - The default builder has no opinion about which tags are + The default implementation has no opinion about which tags are empty-element tags, so a tag will be presented as an empty-element tag if and only if it has no contents. "<foo></foo>" will become "<foo />", and "<foo>bar</foo>" will |