mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 01:04:50 +01:00
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:
parent
667d4586fd
commit
d87abcce3b
1 changed files with 1 additions and 1 deletions
|
|
@ -71,7 +71,7 @@ def remove_all_attributes():
|
|||
for v'var i = 0; i < arguments.length; i++':
|
||||
node = arguments[i]
|
||||
while node.attributes.length > 0:
|
||||
node.removeAttribute(node.attributes[0].name)
|
||||
node.removeAttributeNode(node.attributes[0])
|
||||
|
||||
|
||||
def create_keyframes(animation_name, *frames):
|
||||
|
|
|
|||
Loading…
Reference in a new issue