This commit is contained in:
Kovid Goyal 2019-10-20 11:00:36 +05:30
parent 459e30d82f
commit 70a2ec517e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ def fix_fullscreen_images(container):
child_tags.append(tag)
if len(child_tags) > 1:
break
if len(child_tags) == 1 and child_tags[0] == 'div':
if len(child_tags) == 1 and child_tags[0] in ('div', 'svg'):
names = []
svg = None
for elem in body.iterdescendants('*'):

View File

@ -27,8 +27,8 @@ def fix_fullscreen_svg_images():
child_names.push(name)
if child_names.length > 1:
break
if child_names.length is 1 and child_names[0] is 'div':
names = []
if child_names.length is 1 and (child_names[0] is 'div' or child_names[0] is 'svg'):
names = v'[]'
svg = None
for node in document.body.querySelectorAll('*'):
if node.tagName: