mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04: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
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user