From 58c39f744d5255be785618f2b0df59495829ed10 Mon Sep 17 00:00:00 2001 From: Thomas Jaede Date: Wed, 10 Oct 2018 11:29:39 -0700 Subject: [PATCH] Fix HtmlFragment attribute removal Reset shouldRemoveAttribute in HtmlFragment#_sanitizeNode() each time a new attribute is considered. --- ui/html-fragment.reel/html-fragment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/html-fragment.reel/html-fragment.js b/ui/html-fragment.reel/html-fragment.js index d47654c3c0..2297b9da03 100644 --- a/ui/html-fragment.reel/html-fragment.js +++ b/ui/html-fragment.reel/html-fragment.js @@ -87,11 +87,11 @@ var HtmlFragment = exports.HtmlFragment = Component.specialize(/** @lends HtmlFr l--; } else { childAttributes = child.attributes; - shouldRemoveAttribute = false; allowedAttributesForTag = allowedAttributes[childTagName] || allowedAttributes['*']; for (ii = 0, ll = childAttributes.length; ii < ll; ii++) { + shouldRemoveAttribute = false; attribute = childAttributes[ii]; attributeName = attribute.name; attributeValue = attribute.value;