Closed panec closed 4 years ago
thanks. I created a test: https://github.com/adobe/htlengine/pull/202 and look into it.
on*
and style
attributes shouldn't be handled by data-sly-attribute
block according to specification:
https://github.com/adobe/htl-spec/blob/master/SPECIFICATION.md#223-attribute
Event handler attributes (
on*
) and thestyle
attribute cannot be generated withdata-sly-attribute
due to the fact that none of the available display contexts can fully protect against XSS attacks given the range of values that these attributes can contain.
thanks @karollewandowski. closing as won't fix.
data-sly-attribute.style
is not working as expectedThis works
while this does not work and returns no
style
attributeExpected result is that both of them should behave the same.