diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-24 10:37:47 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-24 10:37:47 -0500 |
commit | a327170e0a7c3ab06031258cc658e53b4fb22c9b (patch) | |
tree | 182c959a7be3fc2b7de83b42181651ce0d1e5f35 /TODO.txt | |
parent | ad2d7d1725743253a21dc94bb9c02a1fbcd5f6e7 (diff) | |
download | beautifulsoup4-a327170e0a7c3ab06031258cc658e53b4fb22c9b.tar.gz |
Warn when SoupStrainer is used with the html5lib tree builder.
Diffstat (limited to 'TODO.txt')
-rw-r--r-- | TODO.txt | 29 |
1 files changed, 7 insertions, 22 deletions
@@ -1,29 +1,14 @@ -Bugs ----- - -* html5lib doesn't support SoupStrainers, which is OK, but there - should be a warning about it. - -Big features ------------- - -* Add namespace support. - Optimizations ------------- -markup_attr_map can be optimized since it's always a map now. - -BS3 features not yet ported ---------------------------- +The html5lib tree builder doesn't use the standard tree-building API, +which worries me. (This may also be why the tree builder doesn't +support SoupStrainers, but I think that has more to do with the fact +that the html5lib tree builder is constantly rearranging the tree, and +will crash if something it parsed earlier didn't actually make it into +the tree.) -* In BS3, "soup.aTag" is the same as 'soup.find("a")'. This lets you -locate a tag called (let's say) "find" with attribute -access. "soup.find" won't do what you want, but "soup.findTag" will. - -This still works In BS4 but it's deprecated. I could make -"soup.find_tag" work the same way as "soup.find('find')", but I don't -think it's worth it. +markup_attr_map can be optimized since it's always a map now. CDATA ----- |