projects
/
tweeper.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rss_converter_twitter.com.xsl: explain why the style attribute is removed
[tweeper.git]
/
src
/
rss_converter_twitter.com.xsl
diff --git
a/src/rss_converter_twitter.com.xsl
b/src/rss_converter_twitter.com.xsl
index
2cf1868
..
06ae70a
100644
(file)
--- a/
src/rss_converter_twitter.com.xsl
+++ b/
src/rss_converter_twitter.com.xsl
@@
-35,6
+35,11
@@
<!-- Identity transform -->
<xsl:template match="@*|node()">
<xsl:copy>
<!-- 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>
<xsl:apply-templates select="@*[not(name() = 'style')]|node()"/>
</xsl:copy>
</xsl:template>