Skip to content

Commit

Permalink
Fix HtmlFragment attribute removal
Browse files Browse the repository at this point in the history
Reset shouldRemoveAttribute in HtmlFragment#_sanitizeNode() each 
time a new attribute is considered.
  • Loading branch information
tejaede authored Oct 10, 2018
1 parent a0ed35d commit 58c39f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/html-fragment.reel/html-fragment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 58c39f7

Please sign in to comment.