diff options
Diffstat (limited to 'crocoite')
-rw-r--r-- | crocoite/html.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/crocoite/html.py b/crocoite/html.py index fec9760..ae5b03c 100644 --- a/crocoite/html.py +++ b/crocoite/html.py @@ -122,8 +122,12 @@ class ChromeTreeWalker (TreeWalker): elif name == '#document': for child in node.get ('children', []): yield from self.recurse (child) + elif name == '#cdata-section': + # html5lib cannot generate cdata. text should be fine. This + # only happens when using Chrome’s inline XML display. + yield self.text (node['nodeValue']) else: - assert False, name + assert False, (name, node) else: default_namespace = constants.namespaces["html"] |