From d87abcce3b09f3c4074abbf86bdee90b6426f907 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 16 Oct 2019 08:04:58 +0530 Subject: [PATCH] Viewer: Fix hang on books with namespaced attributes on 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) --- src/pyj/dom.pyj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyj/dom.pyj b/src/pyj/dom.pyj index 922a12cb48..78ea0a975c 100644 --- a/src/pyj/dom.pyj +++ b/src/pyj/dom.pyj @@ -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):