diff options
author | Leonard Richardson <leonardr@segfault.org> | 2013-05-08 12:21:33 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2013-05-08 12:21:33 -0400 |
commit | 5fbffa7726b473ec54b8e07852e68ab1ac904614 (patch) | |
tree | 1b1ac55c680615b1615335778f69ed798c61bc49 /NEWS.txt | |
parent | 57a2cdfc271c1fb53516bb94bd2ebf44e689d55d (diff) |
Moved select() to Tag. It was always an error to call select() on a string, so there's no reason for it to be in PageElement.
Diffstat (limited to 'NEWS.txt')
-rw-r--r-- | NEWS.txt | 24 |
1 files changed, 15 insertions, 9 deletions
@@ -1,5 +1,17 @@ = 4.2.0 (Unreleased) = +* The Tag.select() method now supports most features of + CSS selectors. + + - Added support for the adjacent sibling combinator (+) and the + general sibling combinator (~). Tests by "liquider". [bug=1082144] + + - Added limited support for the "nth-of-type" pseudo-class. Code + by Sven Slootweg. [bug=1109952] + + - Refactored the code so that the combinators (+, ~, and >) can + select child or sibling tags by attributes other than name. + * In an HTML document, the contents of a <script> or <style> tag will no longer undergo entity substitution by default. XML documents work the same way they did before. [bug=1085953] @@ -21,27 +33,21 @@ * Added the 'diagnose' submodule, which includes several useful functions for reporting problems and doing tech support. - * diagnose(data) tries the given markup on every installed parser, + - diagnose(data) tries the given markup on every installed parser, reporting exceptions and displaying successes. If a parser is not installed, diagnose() mentions this fact. - * lxml_trace(data, html=True) runs the given markup through lxml's + - lxml_trace(data, html=True) runs the given markup through lxml's XML parser or HTML parser, and prints out the parser events as they happen. This helps you quickly determine whether a given problem occurs in lxml code or Beautiful Soup code. - * htmlparser_trace(data) is the same thing, but for Python's + - htmlparser_trace(data) is the same thing, but for Python's built-in HTMLParser class. * The prettify() method now leaves the contents of <pre> tags alone. [bug=1095654] -* Added support for the "nth-of-type" CSS selector. Code by Sven - Slootweg. [bug=1109952] - -* The CSS selector ">" can now find a tag by means other than the - tag name. Code by Sven Slootweg. [bug=1109952] - * Fix a bug in the html5lib treebuilder which sometimes created disconnected trees. [bug=1039527] |