You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ChangeLog
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
* 7.0.0 ??? ?? ????
2
2
- Add "filter"-style functions (think ORM-style filtering, like
3
-
name__contains='abc' or name='abc' or name__ne='something').
3
+
name__contains='abc' or name='abc' or name__ne='something'). Supports all filter operations provided by QueryableList
4
4
* These have been added to AdvancedHTMLParser.AdvancedHTMLParser (as
5
5
filter/filterAnd and filterOr) to work on all nodes in the parser
6
6
* These have been added to AdvancedTag (as filter/filterAnd and filterOr)
@@ -12,9 +12,14 @@ name__contains='abc' or name='abc' or name__ne='something').
12
12
directly on the containing elements, and all children of those elements (and
13
13
their children)
14
14
15
+
This adds QueryableList as a dependency, but setup.py can be passed "--no-deps" to skip that installation (and the filter methods will be unavailable)
16
+
17
+
- Add "find" function on AdvancedHTMLParser, which supports a very very small subset of QueryableList (only equals, contains, and icontains) and can be used for "similar" functionality but without the QueryableList dependency, and only usable from the document level (AdvancedHTMLParser.AdvancedHTMLParser)
18
+
15
19
- Support javascript-style assignment and access on a handful of tags (The older ones, name, id, align, etc).
16
20
You can now do things like: myTag.name = 'hello' to set the name, and myTag.name to access it
17
-
(previously you had to use setAttribute and getAttribute)
21
+
(previously you had to use setAttribute and getAttribute for everything)
22
+
The names used here match what are used in HTML, and include the javascript events
18
23
19
24
20
25
- Fix where "className" could get out of sync with "classList"/"classNames"
@@ -47,6 +52,12 @@ name__contains='abc' or name='abc' or name__ne='something').
47
52
48
53
- Add DOM-style "attributes" to every AdvancedTag. This follows the horrible antiquated interface that DOM
49
54
uses for "attributes", created before getAttribute/setAttribute were standardized.
55
+
This is always available as .attributesDOM , and the dict impl always available as .attributesDict
56
+
57
+
By default, we will retain the "dict" impl, as the NamedNodeMap impl is deprecated.
58
+
There's a new function, toggleAttributesDOM which will change the global .attributes property to be the DOM (official) or Dict (sane and prior) impl.
59
+
60
+
- Some minor cleanups, doc updates, test updates, etc
0 commit comments