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
The implementation of builders can be found in `html5lib/treebuilders/
@@ -55,17 +52,13 @@ The implementation of builders can be found in `html5lib/treebuilders/
55
52
Tree walkers
56
53
------------
57
54
58
-
Once a tree is ready, you can work on it either manually, or using
59
-
a tree walker, which provides a streaming view of the tree. html5lib
60
-
provides walkers for all three supported types of trees (``etree``,
61
-
``dom`` and ``lxml``).
55
+
In addition to manipulating a tree directly, you can use a tree walker to generate a streaming view of it.
56
+
html5lib provides walkers for ``etree``, ``dom``, and ``lxml`` trees, as well as ``genshi`` `markup streams <https://genshi.edgewall.org/wiki/Documentation/streams.html>`_.
62
57
63
58
The implementation of walkers can be found in `html5lib/treewalkers/
Walkers make consuming HTML easier. html5lib uses them to provide you
67
-
with has a couple of handy tools.
68
-
61
+
html5lib provides :class:`~html5lib.serializer.HTMLSerializer` for generating a stream of bytes from a token stream, and several filters which manipulate the stream.
69
62
70
63
HTMLSerializer
71
64
~~~~~~~~~~~~~~
@@ -90,15 +83,14 @@ The serializer lets you write HTML back as a stream of bytes.
90
83
'>'
91
84
'Witam wszystkich'
92
85
93
-
You can customize the serializer behaviour in a variety of ways, consult
94
-
the :class:`~html5lib.serializer.htmlserializer.HTMLSerializer`
95
-
documentation.
86
+
You can customize the serializer behaviour in a variety of ways. Consult
87
+
the :class:`~html5lib.serializer.HTMLSerializer` documentation.
96
88
97
89
98
90
Filters
99
91
~~~~~~~
100
92
101
-
You can alter the stream content with filters provided by html5lib:
93
+
html5lib provides several filters:
102
94
103
95
* :class:`alphabeticalattributes.Filter
104
96
<html5lib.filters.alphabeticalattributes.Filter>` sorts attributes on
@@ -110,11 +102,11 @@ You can alter the stream content with filters provided by html5lib:
0 commit comments