Viewer: Fix hang on books with namespaced attributes on <html> that do not belong to a known ebook namespace. Fixes #1846886 [New ebook viewer hangs on some large EPUB](https://bugs.launchpad.net/calibre/+bug/1846886)

This commit is contained in:
Kovid Goyal 2019-10-16 08:04:58 +05:30
parent 667d4586fd
commit d87abcce3b
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -71,7 +71,7 @@ def remove_all_attributes():
for v'var i = 0; i < arguments.length; i++': for v'var i = 0; i < arguments.length; i++':
node = arguments[i] node = arguments[i]
while node.attributes.length > 0: while node.attributes.length > 0:
node.removeAttribute(node.attributes[0].name) node.removeAttributeNode(node.attributes[0])
def create_keyframes(animation_name, *frames): def create_keyframes(animation_name, *frames):