Skip to content

Commit 28230d3

Browse files
committed
7.1.0
1 parent b488388 commit 28230d3

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

AdvancedHTMLParser/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from .exceptions import InvalidCloseException, MissedCloseException, HTMLValidationException, MultipleRootNodeException
1111
from .SpecialAttributes import StyleAttribute
1212

13-
__version__ = '7.0.2'
14-
__version_tuple__ = ('7', '0', '2')
15-
__int_version_tuple__ = (7, 0, 2)
13+
__version__ = '7.1.0'
14+
__version_tuple__ = ('7', '1', '0')
15+
__int_version_tuple__ = (7, 1, 0)
1616

1717
__all__ = ( 'AdvancedHTMLParser', 'IndexedAdvancedHTMLParser', 'AdvancedHTMLFormatter', 'AdvancedTag', 'TagCollection',
1818
'ValidatingAdvancedHTMLParser', 'MissedCloseException', 'InvalidCloseException', 'HTMLValidationException', 'MultipleRootNodeException',

ChangeLog

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
* 7.1.0 ??? ?? ????
1+
* 7.1.0 May 21 2017
22

33
- Add createElement function on AdvancedHTMLParser, to work like
44
document.createElement. Creates an element with the given tag name.
@@ -18,6 +18,17 @@ and will parse and append any tags and/or text nodes
1818
- Significant improvements in performance on creating tags ( On average, 125%
1919
reduction in time to create an AdvancedTag. ) Use is also improved.
2020

21+
- Add "body" and "head" properties to Parser.AdvancedHTMLParser - to act same
22+
as document.body and document.head
23+
24+
- Add method to both Parser and AdvancedTag, "getFirstElementCustomFilter",
25+
which will apply a lambda/function on each tag, starting with first child and
26+
all children, then second child and all children, etc.
27+
28+
This is used for finding things like "body" and "head" without needing to walk
29+
through the whole document. It's also desgined to find them the quickest, as
30+
they are very likely to be early and high-level objects in the tree.
31+
2132

2233
* 7.0.2 Apr 28 2017
2334

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
long_description = summary
3939

4040
setup(name='AdvancedHTMLParser',
41-
version='7.0.2',
41+
version='7.1.0',
4242
packages=['AdvancedHTMLParser'],
4343
scripts=['formatHTML'],
4444
author='Tim Savannah',

0 commit comments

Comments
 (0)