Montage is an elegant, open source HTML5 framework maintained by Montage Studio that rivals native SDKs, yet is easier to learn. It offers modular components, two-way data binding, and much more. Join us on irc.freenode.net#montage. Sign up for our beta to build Montage applications in the cloud.
HtmlFragment#_sanitizeNode() failed to reset shouldRemoveAttribute when considering the next attribute in the attributes array. This caused all attributes after a removed attribute to be removed as well.
For example, src and title are allowed attributes and class is not. If the attributes array is ["src", "class", "title"], title would be removed because it comes after class. Similarly, if the array was ["class", "src", "title"], all 3 attributes would be removed.
HtmlFragment#_sanitizeNode()
failed to resetshouldRemoveAttribute
when considering the next attribute in the attributes array. This caused all attributes after a removed attribute to be removed as well.For example,
src
andtitle
are allowed attributes andclass
is not. If theattributes
array is["src", "class", "title"]
,title
would be removed because it comes after class. Similarly, if the array was["class", "src", "title"]
, all 3 attributes would be removed.