Skip to content

Releases: Bystroushaak/dhtmlparser3

v3.0.17

28 Jan 18:59
Compare
Choose a tag to compare

Fixed a bunch of bugs found while using this library in several projects, some of them in production.

  • Fixed problem with empty strings in Tokenizer.
  • Changed behavior of the .remove_item() method to compare using identity.
  • Added new method .parse_file() method to simplify working with files.
  • Fixed problem with tokenizer & nonpair tags without spaces.
  • Fixed problem with re-ordering of the parameters when setting them.
  • Fixed pypi badge in readme.
  • Respect spaces in the Comment objects.
  • .__copy__() and .__deepcopy__() methods implemented also for Comment.

3.0.12

09 Mar 02:35
Compare
Choose a tag to compare

Latest version with a lot of bugfixes compared to the version 3.0.0:

  • Added conditional escape parameter to .content_str() method.
  • Fixed parent problem with .__deepcopy__().
  • Implemented proper .__copy__() and .__deepcopy__() methods.
  • Fixed the way how the quotes are escaped in the tag parameters.
  • Fixed behavior of the .__hash__() method for nested tags.
  • Don't escape <script> and <style> content's.
  • Fixed behavior of .match() method.
  • Added new method .match_paths().
  • Added tests.
  • Bugfix; SpecialDict.copy() didn't return any value.
  • Bugfix; Don't search empty tags.
  • Bugfix; Always return container element for small doms with only strings inside.
  • Added .__hash__() method for Tag.
  • .replace_with() method now accepts str as well as Tag.
  • Fixed problems with .parent setting for non-pair tags in the parser.
  • Added bunch of tests to test newly added stuff.
  • Added .__contains__() method for Tag, so you can now test parameters using in operator.

Version 3.0.0

19 Jan 18:12
Compare
Choose a tag to compare
  • Rewritten to use different parser, support for HTML entities.
  • Structure of the classes completely changed, now Tag & Comment are used instead of HTMLElement.
  • Much more cleaner code and more comprehensive method names.
  • By default, the tree is now double-linked without any additional cost.
  • Implemented very useful magic methods, so indexing operators are supported for access to both parameters and content.
  • Documentation completely reworked.
  • Set of coverage tests is now much larger.