<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Simple Safari Search Form Validation</title>
	<atom:link href="http://nslog.com/2006/11/06/simple_safari_search_form_validation/feed" rel="self" type="application/rss+xml" />
	<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation</link>
	<description>The Weblog of Erik J. Barzeski</description>
	<pubDate>Thu, 04 Dec 2008 01:40:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Erik</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-42823</link>
		<dc:creator>Erik</dc:creator>
		<pubDate>Mon, 20 Aug 2007 08:02:21 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-42823</guid>
		<description>why not use javascript to insert the type="search" and such...?
 This way you don't even have that ugly apple-proprietary-markup.
 Just my two cents...</description>
		<content:encoded><![CDATA[<p>why not use javascript to insert the type="search" and such...?<br />
 This way you don't even have that ugly apple-proprietary-markup.<br />
 Just my two cents...</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-41705</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Mon, 04 Jun 2007 13:17:42 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-41705</guid>
		<description>[quote comment="41695"]Wouldn't it also make sense to hide the submit button for webkit browsers, given that the search box is shown without one in the vast majority of cases?[/quote]

It's not a live search box, though - you have to press enter. Without the button, I think some people might type and wonder why nothing's happening.</description>
		<content:encoded><![CDATA[<p class="quote_header"><a href="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-41695">Paul said</a> on June 3, 2007:</p>
<blockquote cite="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-41695"><p>
Wouldn't it also make sense to hide the submit button for webkit browsers, given that the search box is shown without one in the vast majority of cases?</p>
</blockquote>
<p>It's not a live search box, though - you have to press enter. Without the button, I think some people might type and wonder why nothing's happening.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-41695</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sun, 03 Jun 2007 11:32:57 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-41695</guid>
		<description>Wouldn't it also make sense to hide the submit button for webkit browsers, given that the search box is shown without one in the vast majority of cases?</description>
		<content:encoded><![CDATA[<p>Wouldn't it also make sense to hide the submit button for webkit browsers, given that the search box is shown without one in the vast majority of cases?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-39662</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Sat, 24 Feb 2007 20:45:12 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-39662</guid>
		<description>[quote comment="39659"]Interestingly, I note that you don't use the type="search" feature on your own search box![/quote]

Yes I do. Obviously you'll need Safari (or OmniWeb) to see it.</description>
		<content:encoded><![CDATA[<p class="quote_header"><a href="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-39659">Richard Sheppard said</a> on February 24, 2007:</p>
<blockquote cite="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-39659"><p>
Interestingly, I note that you don't use the type="search" feature on your own search box!</p>
</blockquote>
<p>Yes I do. Obviously you'll need Safari (or OmniWeb) to see it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Sheppard</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-39659</link>
		<dc:creator>Richard Sheppard</dc:creator>
		<pubDate>Sat, 24 Feb 2007 19:07:17 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-39659</guid>
		<description>Interestingly, I note that you don't use the type="search" feature on your own search box!</description>
		<content:encoded><![CDATA[<p>Interestingly, I note that you don't use the type="search" feature on your own search box!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Caius Durling</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-39527</link>
		<dc:creator>Caius Durling</dc:creator>
		<pubDate>Sat, 17 Feb 2007 12:13:55 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-39527</guid>
		<description>Just a quick heads up for people that don't know the difference between &#60;? and &#60;?php.  Not all servers come with &#60;? enabled, and indeed some hosts leave it disabled.  &lt;em&gt;(I personally always leave it disabled on my test machine to make sure I write code that is useable on every php install.)&lt;/em&gt;

The problem comes when someone releases php code using &#60;? and your server has it disabled.  Then you have to go through and change all the short tags to the longer &#60;?php type to get the code to run.

The easy way round it is to just release all php code using the longer &#60;?php, and indeed this is the recommendation from the default php.ini file:

&lt;blockquote cite="php.ini"&gt;&lt;p&gt;NOTE: Using short tags should be avoided when developing applications or
libraries that are meant for redistribution, or deployment on PHP
servers which are not under your control, because short tags may not
be supported on the target server. For portable, redistributable code,
be sure not to use short tags.&lt;/p&gt;&lt;/blockquote&gt;

Just a quick FYI for people that might not be able to get this running if (like me) php has short tags disabled!</description>
		<content:encoded><![CDATA[<p>Just a quick heads up for people that don't know the difference between &lt;? and &lt;?php.  Not all servers come with &lt;? enabled, and indeed some hosts leave it disabled.  <em>(I personally always leave it disabled on my test machine to make sure I write code that is useable on every php install.)</em></p>
<p>The problem comes when someone releases php code using &lt;? and your server has it disabled.  Then you have to go through and change all the short tags to the longer &lt;?php type to get the code to run.</p>
<p>The easy way round it is to just release all php code using the longer &lt;?php, and indeed this is the recommendation from the default php.ini file:</p>
<p class="quote_header"><a href="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-">Caius Durling said</a> on February 17, 2007:</p>
<blockquote cite="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-"><p>NOTE: Using short tags should be avoided when developing applications or<br />
libraries that are meant for redistribution, or deployment on PHP<br />
servers which are not under your control, because short tags may not<br />
be supported on the target server. For portable, redistributable code,<br />
be sure not to use short tags.</p>
</blockquote>
<p>Just a quick FYI for people that might not be able to get this running if (like me) php has short tags disabled!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: input type="search" - Random Genius</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-29182</link>
		<dc:creator>input type="search" - Random Genius</dc:creator>
		<pubDate>Sun, 10 Dec 2006 16:27:49 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-29182</guid>
		<description>[...] Erik J. Barzeski over at NSLog goes into it in more depth (I didn't know about placeholder="" for example) and he also goes into a way to only present it to Safari &#38; Omniweb. Link Just because I use safari and its so cool! "They figure it has no type, so they use type="text" instead " If you do, just set the unique identifier to the same each time. [...]</description>
		<content:encoded><![CDATA[<p>[...] Erik J. Barzeski over at NSLog goes into it in more depth (I didn't know about placeholder="" for example) and he also goes into a way to only present it to Safari &amp; Omniweb. Link Just because I use safari and its so cool! "They figure it has no type, so they use type="text" instead " If you do, just set the unique identifier to the same each time. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21865</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Wed, 08 Nov 2006 18:37:15 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-21865</guid>
		<description>[quote comment="21818"]Sorry monsieur, but that's really inelegant and kludgy. You might want to look at custom DTDs -- google it or read &lt;a href="http://alistapart.com/articles/customdtd/"&gt;the article at A List Apart&lt;/a&gt;.[/quote]
Thanks for the pointer. I modified the page to incorporate the following addition to the DOCTYPE:

&lt;code&gt;&#60;[
&#60;!ATTLIST input type CDATA #IMPLIED&#62;
&#60;!ATTLIST input placeholder CDATA #IMPLIED&#62;
&#60;!ATTLIST input autosave CDATA #IMPLIED&#62;
&#60;!ATTLIST input results CDATA #IMPLIED&#62;
]&#62;&lt;/code&gt;

That worked but, as the article noted, the "]&#62;" characters displayed themselves. I attempted to create my own DTD and didn't succeed. So, inelegant and kludgy as it is, my method remains. It's not for validation, per se, but more to reveal features to Safari/OmniWeb users.</description>
		<content:encoded><![CDATA[<p class="quote_header"><a href="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21818">Hendrik said</a> on November 8, 2006:</p>
<blockquote cite="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21818"><p>
Sorry monsieur, but that's really inelegant and kludgy. You might want to look at custom DTDs -- google it or read <a href="http://alistapart.com/articles/customdtd/">the article at A List Apart</a>.</p>
</blockquote>
<p>Thanks for the pointer. I modified the page to incorporate the following addition to the DOCTYPE:</p>
<p><code>&lt;[<br />
&lt;!ATTLIST input type CDATA #IMPLIED&gt;<br />
&lt;!ATTLIST input placeholder CDATA #IMPLIED&gt;<br />
&lt;!ATTLIST input autosave CDATA #IMPLIED&gt;<br />
&lt;!ATTLIST input results CDATA #IMPLIED&gt;<br />
]&gt;</code></p>
<p>That worked but, as the article noted, the "]&gt;" characters displayed themselves. I attempted to create my own DTD and didn't succeed. So, inelegant and kludgy as it is, my method remains. It's not for validation, per se, but more to reveal features to Safari/OmniWeb users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hendrik</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21818</link>
		<dc:creator>Hendrik</dc:creator>
		<pubDate>Wed, 08 Nov 2006 12:22:44 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-21818</guid>
		<description>Sorry monsieur, but that's really inelegant and kludgy. You might want to look at custom DTDs -- google it or read &lt;a href="http://alistapart.com/articles/customdtd/"&gt;the article at A List Apart&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>Sorry monsieur, but that's really inelegant and kludgy. You might want to look at custom DTDs -- google it or read <a href="http://alistapart.com/articles/customdtd/">the article at A List Apart</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik J. Barzeski</title>
		<link>http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21611</link>
		<dc:creator>Erik J. Barzeski</dc:creator>
		<pubDate>Tue, 07 Nov 2006 18:03:04 +0000</pubDate>
		<guid isPermaLink="false">http://nslog.com/2006/11/06/this_site_wont_validate/#comment-21611</guid>
		<description>[quote comment="21338"]Already told you, but just so I don't look like a complete ass to other people: I suggested "stripos" *because* it was case insensitive, and I just messed up when trying to say that. As you said though, it's probably cheaper to downcase and do a case sensitive comparison, and thus "strpos" works.[/quote]
Plus, I just noticed, &lt;code&gt;stripos&lt;/code&gt; &lt;a href="http://us3.php.net/stripos"&gt;requires PHP 5&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p class="quote_header"><a href="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21338">Jesper said</a> on November 6, 2006:</p>
<blockquote cite="http://nslog.com/2006/11/06/simple_safari_search_form_validation#comment-21338"><p>
Already told you, but just so I don't look like a complete ass to other people: I suggested "stripos" *because* it was case insensitive, and I just messed up when trying to say that. As you said though, it's probably cheaper to downcase and do a case sensitive comparison, and thus "strpos" works.</p>
</blockquote>
<p>Plus, I just noticed, <code>stripos</code> <a href="http://us3.php.net/stripos">requires PHP 5</a>.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
