<?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>DaveDevelopment &#187; javascript</title>
	<atom:link href="http://www.davedevelopment.co.uk/archive/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davedevelopment.co.uk</link>
	<description>Dave Marshall</description>
	<lastBuildDate>Tue, 01 Jun 2010 13:18:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mozilla&#8217;s Content Security Policy (CSP)</title>
		<link>http://www.davedevelopment.co.uk/2009/06/30/mozillas-content-security-policy-csp/</link>
		<comments>http://www.davedevelopment.co.uk/2009/06/30/mozillas-content-security-policy-csp/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 09:53:04 +0000</pubDate>
		<dc:creator>davedevelopment</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.davedevelopment.co.uk/?p=419</guid>
		<description><![CDATA[I saw this post via SlashDot and can&#8217;t help but think it&#8217;s a little overkill? 
Content Security Policy is intended to mitigate a large class of Web Application Vulnerabilities: Cross Site Scripting. Cross Site Request Forgery has also become a large scale problem in Web Application Security, though it is not a primary focus of [...]]]></description>
			<content:encoded><![CDATA[<p>I saw <a href="http://blog.mozilla.com/security/2009/06/19/shutting-down-xss-with-content-security-policy/">this post</a> via <a href="http://slashdot.org">SlashDot</a> and can&#8217;t help but think it&#8217;s a little overkill? </p>
<blockquote><p><a href="http://people.mozilla.org/~bsterne/content-security-policy/">Content Security Policy</a> is intended to mitigate a large class of Web Application Vulnerabilities: Cross Site Scripting. Cross Site Request Forgery has also become a large scale problem in Web Application Security, though it is not a primary focus of Content Security Policy.</p>
</blockquote>
<p>In an ideal world, this would be great, but getting all the browsers on board and implemented may take a while. I was thinking about this the other day and I don&#8217;t see why the browsers/w3c can&#8217;t standardise on some sort of tag or conditional comments that says don&#8217;t execute any script in here. This would be simple to use and surely simple to implement. Browsers already know what to do with <a href="http://www.w3schools.com/TAGS/tag_noscript.asp"><code>&lt;noscript&gt;</code></a></p>
<p>For Example: </p>
<pre class="php" name="code">
&lt;dontexecutescript&gt;
    &lt;?php echo $this-&gt;escape($userProvidedContent);?&gt;
&lt;/dontexecutescript&gt;
</pre>
<p>Or:</p>
<pre class="php" name="code">
&lt;!--[dontexecutescript] --&gt;
    &lt;?php echo $this-&gt;escape($userProvidedContent);?&gt;
&lt;!--[dontexecutescript]--&gt;
</pre>
<p>I&#8217;m no expert on <a href="http://en.wikipedia.org/wiki/Cross-site_scripting">XSS</a>, but I&#8217;m pretty sure this would solve most of the issues encountered. </p>
<p><strong>Update:</strong></p>
<p>Okay, so one obvious problem might be that the <code>$userProvidedContent</code> contains a closing <code>&lt;/dontexecutescript&gt;</code> tag, but that&#8217;s just semantics. Unique identifiers for each block, ignoring tags that don&#8217;t match up, these browser developers are clever, they could come up with something. </p>




	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F&amp;title=Mozilla%27s%20Content%20Security%20Policy%20%28CSP%29&amp;bodytext=I%20saw%20this%20post%20via%20SlashDot%20and%20can%27t%20help%20but%20think%20it%27s%20a%20little%20overkill%3F%20%0D%0A%0D%0AContent%20Security%20Policy%20is%20intended%20to%20mitigate%20a%20large%20class%20of%20Web%20Application%20Vulnerabilities%3A%20Cross%20Site%20Scripting.%20Cross%20Site%20Request%20Forgery%20has%20also%20become%20a%20lar" title="Digg"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F&amp;title=Mozilla%27s%20Content%20Security%20Policy%20%28CSP%29&amp;notes=I%20saw%20this%20post%20via%20SlashDot%20and%20can%27t%20help%20but%20think%20it%27s%20a%20little%20overkill%3F%20%0D%0A%0D%0AContent%20Security%20Policy%20is%20intended%20to%20mitigate%20a%20large%20class%20of%20Web%20Application%20Vulnerabilities%3A%20Cross%20Site%20Scripting.%20Cross%20Site%20Request%20Forgery%20has%20also%20become%20a%20lar" title="del.icio.us"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F&amp;h=Mozilla%27s%20Content%20Security%20Policy%20%28CSP%29" title="NewsVine"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F&amp;title=Mozilla%27s%20Content%20Security%20Policy%20%28CSP%29" title="Reddit"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="" title="Furl"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F&amp;title=Mozilla%27s%20Content%20Security%20Policy%20%28CSP%29" title="DZone"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F&amp;title=Mozilla%27s%20Content%20Security%20Policy%20%28CSP%29" title="StumbleUpon"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2009%2F06%2F30%2Fmozillas-content-security-policy-csp%2F" title="Technorati"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davedevelopment.co.uk/2009/06/30/mozillas-content-security-policy-csp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Meeting Cost Clock</title>
		<link>http://www.davedevelopment.co.uk/2008/12/24/meeting-cost-clock/</link>
		<comments>http://www.davedevelopment.co.uk/2008/12/24/meeting-cost-clock/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 12:06:03 +0000</pubDate>
		<dc:creator>davedevelopment</dc:creator>
				<category><![CDATA[javascript]]></category>
		<category><![CDATA[costs]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[management]]></category>
		<category><![CDATA[meetings]]></category>

		<guid isPermaLink="false">http://www.davedevelopment.co.uk/?p=272</guid>
		<description><![CDATA[
I wrote a simple Meeting Cost Clock after having a little search on google for a simple one (I actually found this one after writing mine). It&#8217;s easy to use, you enter the number of participants, the average salary for those participants, then click start. It&#8217;s a little rudimentary, the JavaScript is probably a little [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.davedevelopment.co.uk/meetingclock/"><img src="http://www.davedevelopment.co.uk/wp-content/uploads/2008/12/screenshot8.png" alt="Meeting Clock" title="Meeting Clock" width="446" height="553" class="alignnone size-full wp-image-273" /></a></p>
<p>I wrote a simple <a href="http://www.davedevelopment.co.uk/meetingclock" title="Meeting Cost Clock">Meeting Cost Clock</a> after having a little search on google for a simple one (I actually found <a href="http://www.mcgurrin.com/clock.htm">this one</a> after writing mine). It&#8217;s easy to use, you enter the number of participants, the average salary for those participants, then click start. It&#8217;s a little rudimentary, the JavaScript is probably a little rough, but it&#8217;ll serve me right.</p>
<p>I&#8217;ve styled it using <a href="http://code.google.com/p/iphone-universal/">iPhone universal</a>, a CSS framework for making iPhone stylee pages, so one of my colleagues can open it up on his iPhone in our next meeting.</p>




	<a rel="nofollow" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F&amp;title=Meeting%20Cost%20Clock&amp;bodytext=%0D%0A%0D%0AI%20wrote%20a%20simple%20Meeting%20Cost%20Clock%20after%20having%20a%20little%20search%20on%20google%20for%20a%20simple%20one%20%28I%20actually%20found%20this%20one%20after%20writing%20mine%29.%20It%27s%20easy%20to%20use%2C%20you%20enter%20the%20number%20of%20participants%2C%20the%20average%20salary%20for%20those%20participants%2C%20then%20cl" title="Digg"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F&amp;title=Meeting%20Cost%20Clock&amp;notes=%0D%0A%0D%0AI%20wrote%20a%20simple%20Meeting%20Cost%20Clock%20after%20having%20a%20little%20search%20on%20google%20for%20a%20simple%20one%20%28I%20actually%20found%20this%20one%20after%20writing%20mine%29.%20It%27s%20easy%20to%20use%2C%20you%20enter%20the%20number%20of%20participants%2C%20the%20average%20salary%20for%20those%20participants%2C%20then%20cl" title="del.icio.us"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F&amp;h=Meeting%20Cost%20Clock" title="NewsVine"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F&amp;title=Meeting%20Cost%20Clock" title="Reddit"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a>
	<a rel="nofollow" href="" title="Furl"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/" title="Furl" alt="Furl" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.dzone.com/links/add.html?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F&amp;title=Meeting%20Cost%20Clock" title="DZone"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/dzone.png" title="DZone" alt="DZone" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F&amp;title=Meeting%20Cost%20Clock" title="StumbleUpon"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a>
	<a rel="nofollow" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.davedevelopment.co.uk%2F2008%2F12%2F24%2Fmeeting-cost-clock%2F" title="Technorati"><img src="http://www.davedevelopment.co.uk/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davedevelopment.co.uk/2008/12/24/meeting-cost-clock/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
