<?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>David Nash &#187; semantic</title>
	<atom:link href="http://davidnash.com.au/tag/semantic/feed/" rel="self" type="application/rss+xml" />
	<link>http://davidnash.com.au</link>
	<description>Freelance PHP developer - builder of high-quality dynamic websites</description>
	<lastBuildDate>Sun, 25 Jul 2010 23:56:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Remove empty LEGEND tags in Silverstripe search form</title>
		<link>http://davidnash.com.au/2009/05/remove-empty-legend-tags-in-silverstripe-search-form/</link>
		<comments>http://davidnash.com.au/2009/05/remove-empty-legend-tags-in-silverstripe-search-form/#comments</comments>
		<pubDate>Fri, 01 May 2009 01:28:41 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[silverstripe]]></category>
		<category><![CDATA[xhtml]]></category>
		<category><![CDATA[semantic]]></category>
		<category><![CDATA[w3c valid]]></category>

		<guid isPermaLink="false">http://davidnash.com.au/?p=171</guid>
		<description><![CDATA[I&#8217;m pretty obsessive about my HTML validating with no errors and no warnings. It bugs me that when I use Silverstripe&#8217;s incredibly convenient $Searchform in the template that it outputs an empty legend tag inside the fieldset.
There&#8217;s an easy way to fix this:

Create a templates directory inside mysite.
Copy sapphire/templates/SearchForm.ss to mysite/templates/SearchForm.ss
Edit your copy of the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m pretty obsessive about my HTML validating with no errors and no warnings. It bugs me that when I use Silverstripe&#8217;s incredibly convenient <strong>$Searchform</strong> in the template that it outputs an empty legend tag inside the fieldset.</p>
<p>There&#8217;s an easy way to fix this:</p>
<ol>
<li>Create a templates directory inside mysite.</li>
<li>Copy sapphire/templates/SearchForm.ss to mysite/templates/SearchForm.ss</li>
<li>Edit your copy of the file and remove that pesky  &lt;legend&gt;&lt;/legend&gt; line</li>
<li>Refresh your page that uses the searchform and bathe in the warm glow of a error and warning free page!</li>
</ol>
<p>Thanks to Maksfeltrin in the <a href="\">Silverstripe forums</a> for pointing this out.</p>



Share:


	<a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fremove-empty-legend-tags-in-silverstripe-search-form%2F&amp;title=Remove%20empty%20LEGEND%20tags%20in%20Silverstripe%20search%20form" title="del.icio.us"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fremove-empty-legend-tags-in-silverstripe-search-form%2F&amp;t=Remove%20empty%20LEGEND%20tags%20in%20Silverstripe%20search%20form" title="Facebook"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fremove-empty-legend-tags-in-silverstripe-search-form%2F&amp;title=Remove%20empty%20LEGEND%20tags%20in%20Silverstripe%20search%20form" title="Google"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/googlebookmark.png" title="Google" alt="Google" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="mailto:?subject=Remove%20empty%20LEGEND%20tags%20in%20Silverstripe%20search%20form&amp;body=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fremove-empty-legend-tags-in-silverstripe-search-form%2F" title="E-mail this story to a friend!"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/email_link.png" title="E-mail this story to a friend!" alt="E-mail this story to a friend!" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fremove-empty-legend-tags-in-silverstripe-search-form%2F" title="Technorati"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a>
	<a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fdavidnash.com.au%2F2009%2F05%2Fremove-empty-legend-tags-in-silverstripe-search-form%2F" title="TwitThis"><img src="http://davidnash.com.au/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://davidnash.com.au/2009/05/remove-empty-legend-tags-in-silverstripe-search-form/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
