summaryrefslogtreecommitdiff
path: root/crocoite/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'crocoite/html.py')
-rw-r--r--crocoite/html.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/crocoite/html.py b/crocoite/html.py
index c929a10..fec9760 100644
--- a/crocoite/html.py
+++ b/crocoite/html.py
@@ -22,6 +22,10 @@
HTML helper
"""
+from html5lib.treewalkers.base import TreeWalker
+from html5lib.filters.base import Filter
+from html5lib import constants
+
# HTML void tags, see https://html.spec.whatwg.org/multipage/syntax.html#void-elements
voidTags = {'area',
'base',
@@ -103,10 +107,6 @@ eventAttributes = {'onabort',
'onvolumechange',
'onwaiting'}
-from html5lib.treewalkers.base import TreeWalker
-from html5lib.filters.base import Filter
-from html5lib import constants
-
class ChromeTreeWalker (TreeWalker):
"""
Recursive html5lib TreeWalker for Google Chrome method DOM.getDocument