rss_converter_twitter.com.xsl: explain why the style attribute is removed
[tweeper.git] / src / rss_converter_twitter.com.xsl
index 2cf1868..06ae70a 100644 (file)
     <!-- Identity transform -->
     <xsl:template match="@*|node()">
         <xsl:copy>
+            <!--
+                Strip the style attribute while copying elements because it may be
+                dangerous, see:
+                https://validator.w3.org/feed/docs/warning/DangerousStyleAttr.html
+            -->
             <xsl:apply-templates select="@*[not(name() = 'style')]|node()"/>
         </xsl:copy>
     </xsl:template>