﻿<?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>Travis Miller &#187; Browser Issues</title>
	<atom:link href="http://www.electrumdigital.com/category/browser-issues/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.electrumdigital.com</link>
	<description>Web Developer for Hire</description>
	<lastBuildDate>Thu, 22 Jul 2010 14:17:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Conditional comments for iPhone</title>
		<link>http://www.electrumdigital.com/2009/10/conditional-comments-for-iphone/</link>
		<comments>http://www.electrumdigital.com/2009/10/conditional-comments-for-iphone/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 19:31:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browser Issues]]></category>
		<category><![CDATA[XHTML & CSS]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://www.electrumdigital.com/?p=217</guid>
		<description><![CDATA[You're probably familiar with IE's conditional comments. They allow us to feed special code to that special browser to overcome its many bugs and deficiencies.
Is there something similar for iPhone? Not exactly, but we can achieve the same end:

&#60;!--[if !IE]&#62;&#60;!--&#62;
	&#60;link media=&#34;only screen and (max-device-width: 480px)&#34; href=&#34;iphone.css&#34; type=&#34;text/css&#34; rel=&#34;stylesheet&#34; /&#62;
&#60;!--&#60;![endif]--&#62;


Some versions of IE will apply stylesheets [...]]]></description>
			<content:encoded><![CDATA[<p>You're probably familiar with <acronym title="Internet Explorer">IE</acronym>'s <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a>. They allow us to feed special code to that special browser to overcome its many bugs and deficiencies.</p>
<p>Is there something similar for iPhone? Not exactly, but we can achieve the same end:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--[if !IE]&gt;&lt;!--&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">media</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;only screen and (max-device-width: 480px)&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;iphone.css&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span></pre></div></div>

<p><span id="more-217"></span></p>
<p>Some versions of <acronym title="Internet Explorer">IE</acronym> will apply stylesheets regardless of the <code class="html">media</code> attribute, so the conditional comments are here merely to tell <acronym title="Internet Explorer">IE</acronym> <em>not</em> to use this code.</p>
<p>As for the value of the <code class="html">media</code> attribute: not all browsers understand the "only" keyword; they will simply ignore this line. Of those that <em>do</em> understand it, the only one width a max-device-width of 480px is the iPhone.</p>
<p>(So I'm told. I'm taking all of this on faith. But it seems to work.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electrumdigital.com/2009/10/conditional-comments-for-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Three essential Firefox extensions for web developers</title>
		<link>http://www.electrumdigital.com/2009/08/three-essential-firefox-extensions-for-web-developers/</link>
		<comments>http://www.electrumdigital.com/2009/08/three-essential-firefox-extensions-for-web-developers/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 23:02:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX & JavaScript]]></category>
		<category><![CDATA[Browser Issues]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://www.electrumdigital.com/?p=93</guid>
		<description><![CDATA[Firefox is beloved by web developers for its compliance with W3C standards, its open-source nature, and its general awesomeness. But its vast library of genuinely useful extensions and Greasemonkey scripts is surely a big part of the attraction, too. Here are three that I couldn't live without.


You probably already know about the Web Developer Toolbar, [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox is beloved by web developers for its compliance with <acronym title="World Wide Web Consortium">W3C</acronym> standards, its open-source nature, and its general awesomeness. But its vast library of genuinely useful extensions and Greasemonkey scripts is surely a big part of the attraction, too. Here are three that I couldn't live without.</p>
<p><span id="more-93"></span></p>
<ul>
<li>You probably already know about the <a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer Toolbar</a>, but if you don't, trust me&#8212;go download it <em>now</em>.</p>
<p>Its most valuable feature is the ability to view the generated source of a page&#8212;that is, to see the HTML as it exists at the <em>current moment</em>, including any changes that have been made via JavaScript. It's absolutely indispensible for any kind of <acronym title="Asynchronous JavaScript and XML">AJAX</acronym>-ish work.</p>
<p>It can do a lot more than that, though&#8212;with a couple of clicks, you can validate documents, see what your page looks like at different resolutions, quickly view or delete cookies from only the current domain or path, view overlays which reveal various aspects of the document (such as the names of form fields or information about links), disable images or <acronym title="Cascading Style Sheets">CSS</acronym>, autopopulate forms to accelerate testing, and much more.</p>
</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/2076">JSView</a>. How many times have you needed to view the stylesheets or JavaScript files that are used on a page&#8212;and had to hunt through the page source for the filenames, so you could cobble them together to get a complete <acronym title="Uniform Resource Locator">URL</acronym>?
<p>JSView adds a submenu to the context menu which lists all stylesheets and JavaScript files linked to a page, along with the file sizes. Selecting a file from the menu will display the source in a new window. What JavaScript library are they using on that page? How did they get that effect with <acronym title="Cascading Style Sheets">CSS</acronym>? JSView makes it easier than ever to find out.
</li>
<li><a href="https://addons.mozilla.org/en-US/firefox/addon/3829">Live <acronym title="HyperText Transfer Protocol">HTTP</acronym> Headers</a>. Very handy when you want to see exactly what the browser and the server are saying to each other&#8212;complete with <acronym title="HyperText Transfer Protocol">HTTP</acronym> status codes, POST data, and request and response headers.
<p>It's helped me to diagnose obscure bugs, to understand the workings of third-party web applications (such as when working with Microsoft products, which tend to freak out if the headers aren't set exactly as expected), to discover the <acronym title="Uniform Resource Locator">URL</acronym>s of embedded media files so I can download them (even on sites which obfuscate the <acronym title="Uniform Resource Locator">URL</acronym>s through various means), and more.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.electrumdigital.com/2009/08/three-essential-firefox-extensions-for-web-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Styling horizontal rules in Internet Explorer 6 &amp; 7</title>
		<link>http://www.electrumdigital.com/2009/07/styling-horizontal-rules-in-internet-explorer-6-7/</link>
		<comments>http://www.electrumdigital.com/2009/07/styling-horizontal-rules-in-internet-explorer-6-7/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 00:48:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[AJAX & JavaScript]]></category>
		<category><![CDATA[Browser Issues]]></category>
		<category><![CDATA[horizontal rules]]></category>
		<category><![CDATA[internet explorer]]></category>

		<guid isPermaLink="false">http://www.electrumdigital.com/?p=81</guid>
		<description><![CDATA[Scott Klarr has a nice post about the difficulties of styling horizontal rules with CSS&#8212;owing mainly, of course, to problems in Internet Explorer.
In short, IE 6 and 7 insist on putting a border around horizontal rules, no matter how you set up your stylesheet.
Scott offers a simple but elegant solution which relies on jQuery. That's [...]]]></description>
			<content:encoded><![CDATA[<p>Scott Klarr has <a href="http://www.scottklarr.com/topic/483/how-to-style-hr-elements-with-decorative-horizontal-rules/">a nice post</a> about the difficulties of styling horizontal rules with <acronym title="Cascading Style Sheets">CSS</acronym>&#8212;owing mainly, of course, to problems in Internet Explorer.</p>
<p>In short, <acronym title="Internet Explorer">IE</acronym> 6 and 7 insist on putting a border around horizontal rules, no matter how you set up your stylesheet.</p>
<p>Scott offers a simple but elegant solution which relies on jQuery. That's fine if you're already using jQuery in your project, but if you're not, it's hard to justify the extra payload to fix a simple cosmetic issue.</p>
<p>I've written a standalone version of Scott's script. At less than 350 bytes, it's a very lightweight solution, and it's easy to implement. Here's <a href="/source/js/ie-hr-fix/">a demo page</a>. As Scott's post explains, it simply replaces all <code class="html">&lt;hr /&gt;</code> elements with <code class="html">&lt;div class="iehrfix"&gt;&lt;/div&gt;</code> in the affected versions of <acronym title="Internet Explorer">IE</acronym>.</p>
<p><span id="more-81"></span></p>
<p>Instructions:
<ol>
<li>Mark up your pages with semantically correct &lt;hr /&gt; tags.</li>
<li>Style the horizontal rules however you like in your default stylesheet. (You'll probably be using a background image.)</li>
<li>Prepare a second stylesheet, which we'll feed only to <acronym title="Internet Explorer">IE</acronym> by using <a href="http://www.quirksmode.org/css/condcom.html">conditional comments</a>. It should contain two rules: one which sets <code class="css">display: none;</code> on all <code class="html">&lt;hr /&gt;</code> elements, and one which describes alternate rules for <code class="css">div.iehrfix</code>. You can use <a href="/source/js/ie-hr-fix/iehrfix.css">the demo stylesheet</a> as a starting point.</li>
<li><a href="/source/js/ie-hr-fix/iehrfix.js">Download iehrfix.js</a>.</li>
<li>Place the following code in the <code class="html">&lt;head&gt;</code> of your document:

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--[if(IE 6)|(IE 7)]&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/path/to/iehrfix.css&quot; /&gt;</span>
<span style="color: #808080; font-style: italic;">    &lt;script type=&quot;text/javascript&quot; src=&quot;/path/to/iehrfix.js&quot;&gt;&lt;/script&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span></pre></div></div>

</li>
</ol>
<p>That's it! Browsers other than <acronym title="Internet Explorer">IE</acronym> 6 and 7 will completely ignore the added code. <acronym title="Internet Explorer">IE</acronym> 6 and 7 will execute it on page load; if JavaScript is disabled, <code class="html">&lt;hr /&gt;</code> elements will simply be hidden altogether. (IE 8 handles horizontal rules correctly, and doesn't need the fix.)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.electrumdigital.com/2009/07/styling-horizontal-rules-in-internet-explorer-6-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
