Skip to content

Commit 1d3e26b

Browse files
author
James Graham
committed
Enable the CDATA mode by passing in the parser to the tokenizer
1 parent 3b0ed45 commit 1d3e26b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

html5lib/html5parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def _parse(self, stream, innerHTML=False, container="div",
105105
self.container = container
106106
self.tokenizer = self.tokenizer_class(stream, encoding=encoding,
107107
parseMeta=parseMeta,
108-
useChardet=useChardet, **kwargs)
108+
useChardet=useChardet,
109+
parser=self, **kwargs)
109110
self.reset()
110111

111112
while True:

0 commit comments

Comments
 (0)