<?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>36Flavours.com &#187; safari</title>
	<atom:link href="http://36flavours.com/tag/safari/feed/" rel="self" type="application/rss+xml" />
	<link>http://36flavours.com</link>
	<description>A taste of something different...</description>
	<lastBuildDate>Mon, 19 Apr 2010 20:01:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>jQuery document ready bug in Safari / WebKit</title>
		<link>http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/</link>
		<comments>http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 13:52:28 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[1.3.2]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[ready]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[window]]></category>

		<guid isPermaLink="false">http://36flavours.com/?p=623</guid>
		<description><![CDATA[There is an issue with the jQuery 1.3.2 document ready function in WebKit based browsers that which can cause numerous problems if you are manipulating the DOM, in my situation getting the width / height of an element. Using the .width() and .height() methods were working fine in every other browser but Safari, which I [...]]]></description>
			<content:encoded><![CDATA[<p class="first">There is an issue with the jQuery 1.3.2 document ready function in WebKit based browsers that which can cause numerous problems if you are manipulating the DOM, in my situation getting the width / height of an element.</p>
<p>Using the <strong>.width()</strong> and <strong>.height()</strong> methods were working fine in every other browser but <strong>Safari</strong>, which I thought was a little bit odd. After trying to come up with an alternative method of coding calculating the heights and comparing them in <strong>FireBug</strong> and <strong>Web Inspector</strong>, I set about Googling the problem.<span id="more-623"></span></p>
<p>The only problem was that I had no idea what to search for, so started with the term &#8220;jquery height in safari&#8221;. The <a href="http://old.nabble.com/Safari-unable-to-get-width-and-height-of-image.-td17511293s27240.html" target="_blank">first result</a> looked promising but took a fair bit of reading, although it proved to be worth while in the end. One comment pointed out that you should try to:</p>
<blockquote><p><strong>use jQuery(window).load() instead of jQuery(document).ready()</strong></p></blockquote>
<p>I tried this and straight away saw the results that were expected. The problem was that I didn&#8217;t really want to stop using the preferred document ready method <em>($(function() { &#8230; });)</em>, so searched the <a href="http://dev.jquery.com/" target="_blank">jQuery Bug Tracker</a> for any sign of a bug report.</p>
<p>I eventually found one highlighting the exact problem I was having, issue <a href="http://dev.jquery.com/ticket/5521" target="_blank">#5521</a>. The solution came in the form of a patch the document ready function that targets Safari.</p>
<p><code>+ if (jQuery.browser.safari &amp;&amp; document.readyState != "complete") {<br />
+ setTimeout( arguments.callee, 100 );<br />
+ return;<br />
+ }</code></p>
<p>It doesn&#8217;t look like this fix (nor any other form of solution) have been included in the latest nightly build, so I&#8217;m opting for the window load solution for now.</p>
<p><strong>EDIT:</strong> Another solution to this problem is  to simply include any CSS files before the inclusion of the jQuery file. I found this by browsing the bug tracker and coming across<a href="http://dev.jquery.com/ticket/3690" target="_blank"> ticket #3690</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2010/01/jquery-document-ready-bug-in-safari-webkit/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>CSS: Targeting Safari 3 only</title>
		<link>http://36flavours.com/2009/01/css-targetting-safari-3-only/</link>
		<comments>http://36flavours.com/2009/01/css-targetting-safari-3-only/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 13:43:24 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[aqua]]></category>
		<category><![CDATA[button]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[target]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=93</guid>
		<description><![CDATA[Although Safari 3 tends to render layouts the same as the other leading popular browsers, it prefers to use it&#8217;s &#8220;aqua&#8221; button styling for standard sized form buttons. One solution for this is to set a dimension (width or height) to the button. To target Safari 3 in CSS you can use the following to [...]]]></description>
			<content:encoded><![CDATA[<p class="first">Although Safari 3 tends to render layouts the same as the other leading popular browsers, it prefers to use it&#8217;s &#8220;aqua&#8221; button styling for standard sized form buttons.</p>
<p>One solution for this is to set a dimension (width or height) to the button.</p>
<p>To target Safari 3 in CSS you can use the following to add or override any existing attributes, such as the height of a button:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #a1a100;">@media screen and (-webkit-min-device-pixel-ratio:0) {</span>
	button <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>If required, multiple selectors can be added into a single block.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2009/01/css-targetting-safari-3-only/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cross Browser CSS Layout Debugging</title>
		<link>http://36flavours.com/2008/04/cross-browser-css-layout-debugging/</link>
		<comments>http://36flavours.com/2008/04/cross-browser-css-layout-debugging/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 21:53:31 +0000</pubDate>
		<dc:creator>Steve Whiteley</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[opera]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://sha.re.it/?p=12</guid>
		<description><![CDATA[I&#8217;ve spent the majority of today fixing CSS layout issues to ensure my latest work project will look just as good in IE6 as it does in Firefox and the other major browsers. I tend to stick to Firefox as my development browser to test a project as I go along, this way I can [...]]]></description>
			<content:encoded><![CDATA[<p class="first">I&#8217;ve spent the majority of today fixing CSS layout issues to ensure my latest work project will look just as good in IE6 as it does in Firefox and the other major browsers.</p>
<p>I tend to stick to Firefox as my development browser to test a project as I go along, this way I can almost guarantee that the layout will look fine when browsing in Opera, Safari (Win) and even IE7/8.</p>
<p>Internet Explorer 6 on the other hand is a whole different ball game altogether, even in standards compliance mode things can take an age to get sorted, often finding yourself floating elements as well as adding in any filters as it is unable to render png transparency or opacity correctly.</p>
<p>At least Microsoft had got the majority of things right when they released Internet Explorer 7 and now with the beta release of IE8 with the IE7 rendering engine option things are looking up for web developers.</p>
<p>Unfortunately we will have to put up with the woes of IE6 and below, at least until the percentage of users drops to a more insignificant amount. Currently <a title="Stats from the W3C log files" href="http://www.w3schools.com/browsers/browsers_stats.asp" target="_blank">around 30%</a> of users are still browsing using IE6 which is enough to put doubt into every developers mind as to whether or not they should bother with it.</p>
<p>Currently I have <a title="Firefox 2 Download" href="http://www.mozilla-europe.org/en/products/firefox/" target="_blank">Firefox 2</a> / <a title="Firefox 3 beta Download" href="http://www.mozilla.com/en-US/firefox/all-beta.html" target="_blank">3 beta</a>, <a title="Opera Download" href="http://www.opera.com/download/" target="_blank">Opera</a> 9, <a title="Safari Download" href="http://www.apple.com/safari/" target="_blank">Safari</a> (Windows) and <a title="Internet Explorer 8 Download" href="http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx" target="_blank">IE 8</a> (with built in 7 rendering option) all installed on my PC. Both Opera and Firefox allow for multiple installs of different releases on a single machine, but when it comes to IE6 I&#8217;ve had to either use the <a title="Stand Alone IE 6 Download" href="http://browsers.evolt.org/?ie/32bit/standalone" target="_blank">stand alone</a> version or use a <a title="Windows Virtual Machine" href="http://www.microsoft.com/windows/products/winfamily/virtualpc/overview.mspx" target="_blank">Virtual Machine</a> with an <a title="XP with IE6 Image" href="http://www.microsoft.com/downloads/details.aspx?FamilyId=21EABB90-958F-4B64-B5F1-73D0A413C8EF&amp;displaylang=en" target="_blank">XP and IE6 Image</a>.</p>
<p>The stand alone version from <a title="Evolt" href="http://www.evolt.org/" target="_blank">Evolt</a> is fine up until the point where you are wanting to test any filters, css conditional statements or set up a proxy connection.</p>
<p>The the virtual machine option on the other hand will render everything as expected, but does require you to go through the booting up process and download the latest image every couple of months as they expire.</p>
<p>With my irritations of backward compatibility aside, I believe as developers we should all continue to dedicate some of our time allowing as many people as possibly to have the same browsing experience, even though it can be a major chore at times and testing in each browser can have it difficulties.</p>
]]></content:encoded>
			<wfw:commentRss>http://36flavours.com/2008/04/cross-browser-css-layout-debugging/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
