From: Antonio Ospite Date: Thu, 8 Nov 2018 08:29:35 +0000 (+0100) Subject: rss_converter_twitter.com.xsl: explain why the style attribute is removed X-Git-Tag: v1.4.0~15 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/632828ebf68e855872006c220337703c25d7423d?ds=inline;hp=--cc rss_converter_twitter.com.xsl: explain why the style attribute is removed Since commit 6817108 (rss_converter_twitter.com.xsl: strip the style attribute from HTML elements, 2017-06-08) the twitter.com stylesheet removes the "style" attribute from elements when copying them. This is in order to create a more visually neutral output, but also because the style attribute may even contain dangerous content: https://validator.w3.org/feed/docs/warning/DangerousStyleAttr.html However someone who reads the code may not be familiar with (or have forgotten) why this is done, so explain that in a comment to avoid them the burden of digging in the project history. --- 632828ebf68e855872006c220337703c25d7423d diff --git a/src/rss_converter_twitter.com.xsl b/src/rss_converter_twitter.com.xsl index 2cf1868..06ae70a 100644 --- a/src/rss_converter_twitter.com.xsl +++ b/src/rss_converter_twitter.com.xsl @@ -35,6 +35,11 @@ +