<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Anchor Web Hosting Blog &#187; css</title>
	<atom:link href="http://www.anchor.com.au/blog/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anchor.com.au/blog</link>
	<description>A view into the Anchor Engineroom</description>
	<lastBuildDate>Wed, 08 Feb 2012 00:51:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS3, MOFO, DO YOU SPEAK IT!?!</title>
		<link>http://www.anchor.com.au/blog/2009/04/do-you-speak-it/</link>
		<comments>http://www.anchor.com.au/blog/2009/04/do-you-speak-it/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 03:38:20 +0000</pubDate>
		<dc:creator>Barney Desmond</dc:creator>
				<category><![CDATA[WTF]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[elliott kember]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[pulp fiction]]></category>
		<category><![CDATA[spoof]]></category>
		<category><![CDATA[standards]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.anchor.com.au/blog/?p=706</guid>
		<description><![CDATA[A colleague found a rather cute pop culture spoof recently that&#8217;s worth sharing. If you develop web content on a regular basis then I think this&#8217;ll really touch a nerve: http://www.elliottkember.com/ie.html (contains some contextually-appropriate coarse language) Did you notice the little peel-away flap in the top-left corner?]]></description>
			<content:encoded><![CDATA[<p>A colleague found a rather cute pop culture spoof recently that&#8217;s worth sharing. If you develop web content on a regular basis then I think this&#8217;ll really touch a nerve:</p>
<p><a href="http://www.elliottkember.com/ie.html">http://www.elliottkember.com/ie.html</a> (contains some contextually-appropriate coarse language)</p>
<p><span style="font-size: smaller;">Did you notice the little peel-away flap in the top-left corner? <img src='http://www.anchor.com.au/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.anchor.com.au/blog/2009/04/do-you-speak-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.7, now with fewer absurd bugs</title>
		<link>http://www.anchor.com.au/blog/2009/03/wordpress-27-now-with-fewer-absurd-bugs/</link>
		<comments>http://www.anchor.com.au/blog/2009/03/wordpress-27-now-with-fewer-absurd-bugs/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 05:26:19 +0000</pubDate>
		<dc:creator>Barney Desmond</dc:creator>
				<category><![CDATA[WTF]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[span color]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.anchor.com.au/blog/?p=527</guid>
		<description><![CDATA[I went ahead and upgraded the installation of wordpress we use for this blog from 2.6 to 2.7 &#8211; you won&#8217;t notice anything mind you, but we get a completely different admin interface under the hood. Keeping things up to date is always a good idea from a security standpoint, but I also wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>I went ahead and upgraded the installation of wordpress we use for this blog from 2.6 to 2.7 &#8211; you won&#8217;t notice anything mind you, but we get a completely different admin interface under the hood. Keeping things up to date is always a good idea from a security standpoint, but I also wanted to address an odd issue that wasn&#8217;t present in my own personal installation of 2.7.</p>
<p>I&#8217;d noticed a little while ago that the font-colour controls in the editor didn&#8217;t seem to work. I could select the text and apply the colour, but the change disappeared once I saved the changes. Looking at the HTML, something odd was afoot:</p>
<pre>&lt;span style="#990000"&gt;lorem ipsum dolor&lt;/span&gt;</pre>
<p>Definitely not the expected behaviour, the &#8220;color:&#8221; was being stripped out of the style attribute. A little further searching revealed the treachery: wp-include/kses.php</p>
<p>kses.php performs data sanitisation, mostly to do with handling dodgy/exploitable code in posts and comments. The editor implements colours in the expected manner using inline CSS, but the sanitiser strips it out! I imagined that surely this was well-tested, but trawling google for likely problem reports was largely fruitless.</p>
<p>There were a couple of posts from people who&#8217;d run into this same issue, but the fix was largely unsatisfactory.</p>
<ul>
<li><a href="http://mu.wordpress.org/forums/topic.php?id=5619">http://mu.wordpress.org/forums/topic.php?id=5619</a></li>
<li><a href="http://ryan.wordpress.com/2005/09/20/filtering-post-content-with-kses/">http://ryan.wordpress.com/2005/09/20/filtering-post-content-with-kses/</a></li>
<li><a href="http://mu.wordpress.org/forums/topic.php?id=6029">http://mu.wordpress.org/forums/topic.php?id=6029</a></li>
</ul>
<p>Why unsatisfactory? Because you add the desired css attributes to an array in kses.php called &#8220;$allowed_protocols&#8221; &#8211; a rather nasty hack to my mind. In WordPress&#8217; defence, I didn&#8217;t perform a vanilla installation and verify the issue was still there with no user modifications &#8211; it would have been substantial effort for a problem that could be fixed by keeping up to date anyway. No hard feelings, guys.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.anchor.com.au/blog/2009/03/wordpress-27-now-with-fewer-absurd-bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

