summaryrefslogtreecommitdiff
path: root/bs4/element.py
AgeCommit message (Collapse)Author
2016-07-16Added a separate class for XML processing instructions, which have a ↵Leonard Richardson
slightly different format from SGML processing instructions. [bug=1504383]
2016-07-16Rename COPYING.txt to LICENSE. Add a reference to LICENSE in every source file.Leonard Richardson
2015-09-28Add a __license__ statement to all source files.Leonard Richardson
2015-09-28Improved the implementation of CSS selector grouping. Thanks to Orangain for ↵Leonard Richardson
the patch. [bug=1484543]
2015-09-28Corrected the output of Declaration objects. [bug=1477847]Leonard Richardson
2015-09-28Fixed a bug that deranged the tree when part of it wasLeonard Richardson
removed. Thanks to Eric Weiser for the patch and John Wiseman for a test. [bug=1481520]
2015-09-28Don't allow inserting None into a tag.Leonard Richardson
2015-08-06Use identity comparisons for tree traversalEric Wieser
Otherwise, different NavigableStrings compare equal. Fixes Bug #1481520
2015-06-28Changed the way soup objects work under copy.copy(). Copying aLeonard Richardson
NavigableString or a Tag will give you a new NavigableString that's equal to the old one but not connected to the parse tree. Patch by Martijn Peters. [bug=1307490]
2015-06-28Copying a NavigableString will give you a new NavigableString that is not ↵Leonard Richardson
connected to the parse tree.
2015-06-28Fixed a bug where Element.extract() could create an infinite loop inLeonard Richardson
the remaining tree.
2015-06-28Raise a NotImplementedError whenever an unsupported CSS pseudoclassLeonard Richardson
is used in select(). Previously some cases did not result in a NotImplementedError.
2015-06-25Introduced the select_one() method, which uses a CSS selector butLeonard Richardson
only returns the first match, instead of a list of matches. [bug=1349367]
2015-06-25The text argument to the find_* methods is now called string,Leonard Richardson
which is more accurate. text still works, but is the argument described in the documentation. text may eventually change its meaning, but not for a very long time. [bug=1366856]
2015-06-25Make it possible to invoke the Tag() constructor without providing a ↵Leonard Richardson
builder. [bug=1307471]
2015-06-25You can now create a NavigableString or a subclass just by invokingLeonard Richardson
the constructor. [bug=1294315]
2015-06-25Improved the exception raised when you call .unwrap() orLeonard Richardson
.replace_with() on an element that's not attached to a tree.
2015-06-25__repr__ now returns an ASCII bytestring in Python 2, and a Unicode string ↵Leonard Richardson
in Python 3, instead of a UTF8-encoded bytestring in both versions. [bug=1420131]
2015-06-24The select() method can now find tags with attributes whose namesLeonard Richardson
contain dashes. Patch by Marek Kapolka. [bug=1304007]
2015-06-24Improved docstring for encode_contents() and decode_contents(). [bug=1441543]Leonard Richardson
2015-06-23Made the previous fix nicer by adding arguments to setup() that let us ↵Leonard Richardson
preserve a tag's existing place in the tree.
2015-06-23Got a hacky fix for the latest html5lib problem.Leonard Richardson
2014-12-11Improved the lxml tree builder's handling of processingLeonard Richardson
instructions. [bug=1294645]
2014-12-11The select() method can now find tags whose names containLeonard Richardson
dashes. Patch by Francisco Canas [bug=1276211]
2014-12-10The select() method now supports selector grouping. Patch byLeonard Richardson
Francisco Canas [bug=1191917]
2013-08-15Make sure the optimized find_all() ResultSets actually contain the right data.Leonard Richardson
2013-08-13* Fixed yet another problem with the html5lib tree builder, caused byLeonard Richardson
html5lib's tendency to rearrange the tree during parsing. [bug=1189267]
2013-08-12Fixed incorrect superclass in super() Call.Leonard Richardson
2013-08-12All find_all calls should now return a ResultSet object. Patch byLeonard Richardson
Aaron DeVore. [bug=1194034]
2013-06-03A NavigableString object now has an immutable '.name' property whoseLeonard Richardson
+ value is always None. This makes it easier to iterate over a mixed + list of tags and strings without having to check whether each + element is a tag or a string.
2013-06-03_last_descendant can be optimized in some cases.Leonard Richardson
2013-06-03Improved performance for html5lib.Leonard Richardson
2013-06-03Improved performance of _replace_cdata_list_attribute_values, and greatly ↵Leonard Richardson
reduced the number of times it is called.
2013-05-31Reverted the patch that gives NavigableString a .name property, because ↵Leonard Richardson
that's too big an API change for a bugfix release.
2013-05-20A NavigableString object now has an immutable '.name' property whoseLeonard Richardson
value is always None. This makes it easier to iterate over a mixed list of tags and strings without having to check whether each element is a tag or a string.
2013-05-14Added a deprecation warning to has_key().Leonard Richardson
2013-05-08A CSS selector should never match the same tag twice.Leonard Richardson
2013-05-08Minor cleanup.Leonard Richardson
2013-05-08Fixed terminology.Leonard Richardson
2013-05-08Moved select() to Tag. It was always an error to call select() on a string, ↵Leonard Richardson
so there's no reason for it to be in PageElement.
2013-05-08Give the checker the ability to stop the iteration over the generator by ↵Leonard Richardson
raising StopIteration.
2013-05-08Aaand... it's now trivial to implement sibling selectors.Leonard Richardson
2013-05-08Once again, we're back to the steady state.Leonard Richardson
2013-05-08Got it all working again except for nth_child_of_type.Leonard Richardson
2013-05-08Refactored again to use iterators instead of calling find_all().Leonard Richardson
2013-05-08OK, the tests pass.Leonard Richardson
2013-05-08Almost there.Leonard Richardson
2013-05-08We're getting there.Leonard Richardson
2013-05-08Fixing test failures.Leonard Richardson
2013-05-08Initial refactoring.Leonard Richardson