<?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>MikePadgett.com &#187; browser wars</title>
	<atom:link href="http://www.mikepadgett.com/tag/browser-wars/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mikepadgett.com</link>
	<description>Articles, reviews, travel, design, literature and more written by Mike Padgett, an Information Designer in Brussels</description>
	<lastBuildDate>Thu, 02 Feb 2012 09:02:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Highcharts and HTML5: IE&#8217;s innerHTML unknown runtime error</title>
		<link>http://www.mikepadgett.com/technology/technical/highcharts-and-html5-ies-innerhtml-unknown-runtime-error/</link>
		<comments>http://www.mikepadgett.com/technology/technical/highcharts-and-html5-ies-innerhtml-unknown-runtime-error/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 10:10:01 +0000</pubDate>
		<dc:creator>Mike Padgett</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[browser wars]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.mikepadgett.com/?p=3464</guid>
		<description><![CDATA[Internet Explorer's hoary old unknown runtime error comes back to haunt me in HTML5]]></description>
			<content:encoded><![CDATA[<p>I recently ran into the classic &#8220;<a href="http://stackoverflow.com/questions/555965/javascript-replace-innerhtml-throwing-unknown-runtime-error" title="Links to an external website">unknown runtime error</a>&#8221; while testing some of my work with <a href="http://www.highcharts.com/" title="Links to an external website">Highcharts</a> in Internet Explorer 8.</p>
<p>The &#8220;unknown runtime error&#8221; was at one time a common problem when working with <tt>innerHTML</tt> in Internet Explorer as for some elements it&#8217;s a read-only property. Needless to say, I was a bit surprised to see it this time, especially since I couldn&#8217;t spot anything out of the ordinary.</p>
<div class="centeralign"><img src="http://www.mikepadgett.com/wp-content/uploads/2011/07/error-innerhtml.gif" alt="error innerhtml" width="556" height="373" /></div>
<p>Then I suddenly realised that the source of the problem was probably the dynamically-created HTML5 <tt>figure</tt> element into which I was asking Highcharts to insert my chart. Rather than mess about with the Highcharts library and a homegrown workaround <em>du jour</em>, I decided to go with a simple <tt>div</tt>.</p>
<p>As with everything Microsoft, given time things will work out. <a href="http://msdn.microsoft.com/en-us/library/gg593038%28v=VS.85%29.aspx" title="Links to an external website">Updated <tt>figure</tt> documentation from Microsoft</a> and <a href="http://caniuse.com/#feat=html5semantic" title="Links to an external website">Caniuse.com</a> confirm that support for HTML5 semantic elements (and therefore read/write <tt>innerHTML</tt>) should be available in IE9.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikepadgett.com/technology/technical/highcharts-and-html5-ies-innerhtml-unknown-runtime-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE7 only: float bug on elements with italic, background properties</title>
		<link>http://www.mikepadgett.com/technology/technical/ie7-only-float-bug-on-elements-with-italics-and-background-properties/</link>
		<comments>http://www.mikepadgett.com/technology/technical/ie7-only-float-bug-on-elements-with-italics-and-background-properties/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 20:28:42 +0000</pubDate>
		<dc:creator>Mike Padgett</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[browser wars]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web standards]]></category>

		<guid isPermaLink="false">http://www.mikepadgett.com/?p=1248</guid>
		<description><![CDATA[What do you get if you cross a float and an italic in Internet Explorer?]]></description>
			<content:encoded><![CDATA[<p>Setting <tt>font-style:italic</tt> in your CSS for elements in the vicinity of a floated element can actually trigger a float bug in Internet Explorer 7.</p>
<p>This is only a problem, so far as I can see,  when you&#8217;re using backgrounds on the unfloated element(s), because thr background image or colour will overrun your floated element.</p>
<p>Want to try it? The situation is as follows:</p>
<ol>
<li>Float an element containing either an image or text</li>
<li>Continue with unfloated elements so that under normal circumstances they wrap around the floated element</li>
<li>Give the wrapped text a background property, such as a background colour or image</li>
</ol>
<p>The code so far:</p>
<p><code>/* CSS */<br />
.floated {float: right;}<br />
p {background: #fc0;}<br />
...<br />
&lt;!-- HTML --&gt;<br />
&lt;div class="floated"&gt;&lt;img src="/images/tmp.jpg" /&gt;&lt;/div&gt;<br />
&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit&lt;/p&gt;<br />
&lt;p&gt;Class aptent taciti sociosqu ad litora torquent per conubia nostra per inceptos himenaeos&lt;/p&gt;<br />
</code><br />
Up to this point everything&#8217;s normal:</p>
<div class="centeralign"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/07/no-bug.gif" alt="No bug" /></div>
<p>So far so good. Now add <tt>font-style:italic;</tt> to the rule for <tt>p</tt>.</p>
<p>Here&#8217;s Firefox, with no surprises:</p>
<div class="centeralign"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/07/ff-italic-bug.gif" alt="Firefox italic float: no bug" /></div>
<p>But here&#8217;s Internet Explorer 7:</p>
<div class="centeralign"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/07/ie-italic-bug.gif" alt="IE italic float bug" /></div>
<p>The only (il)logical answer seems to be the addition of <tt>overflow: auto</tt> to the rule with the background.</p>
<p>I was clued in by a <a href="http://muffinresearch.co.uk/archives/2006/12/28/bug-ie7-absolutely-positioned-italics/">slightly different issue with the same fix</a> already discovered long ago. Just to remind you once more, <em>this is IE7 only</em>, folks!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikepadgett.com/technology/technical/ie7-only-float-bug-on-elements-with-italics-and-background-properties/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing CSS for print media: we need a Print Preview for developers!</title>
		<link>http://www.mikepadgett.com/technology/technical/testing-css-print-media-we-need-a-print-preview-for-developers/</link>
		<comments>http://www.mikepadgett.com/technology/technical/testing-css-print-media-we-need-a-print-preview-for-developers/#comments</comments>
		<pubDate>Mon, 15 Jun 2009 19:15:42 +0000</pubDate>
		<dc:creator>Mike Padgett</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[browser wars]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web standards]]></category>

		<guid isPermaLink="false">http://www.mikepadgett.com/?p=1190</guid>
		<description><![CDATA[How I wish there was an easier way to test CSS intended for the printed page.]]></description>
			<content:encoded><![CDATA[<div class="imgright"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/06/press.gif" alt="Engraving of a printing press c. 1568" /></p>
<p class="caption">Source: <a title="Links to an external website" href="http://en.wikipedia.org/wiki/File:Printer_in_1568-ce.png">Wikimedia Commons</a></p>
</div>
<p>The virtues of <tt>@media print</tt> have been explained elsewhere, best of all by Eric Meyer in his seminal A List Apart article <a title="Links to an external website" href="http://www.alistapart.com/articles/goingtoprint/"><em>Going to Print</em></a>, whose original publish date (May 2002) makes me feel a bit old!</p>
<p>Yet one of the most annoying aspects of developing CSS for print is testing it.</p>
<p>Now I know that testing print CSS doesn&#8217;t take a huge slice of our lives, but it annoys the heck out of me. So if you&#8217;re a tolerant sort of person who&#8217;s happy to rub along with naff workflows, you might find this article and indeed the fact that there&#8217;s a whole article on the subject, just a bit finicky.</p>
<p>Thing is, I <em>hate</em> testing print CSS.</p>
<p>Sure, simple markup and layouts only need buffing to a shine to be ready for print, but an increase in complexity or a requirement for absolute fidelity in printed material can lead to ugly scenes round my way.</p>
<h3>Print CSS: browser testing !== <em>Print Preview</em> testing</h3>
<div class="imgleft"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/06/print.jpg" alt="Print styles in Firefox and Internet Explorer" /></div>
<p>Developers tend temporarily to substitute their screen CSS for their print CSS, run it in the ordinary browser environment, <em>et voilà</em>. Rinse and repeat.</p>
<p>Yet the actual conversion to the printed page can sometimes lead to unexpected results, as can be seen in the image: different browsers, different <em>Print Preview</em> results &#8211; even though in the browser there was nothing obviously objectionable.</p>
<h3>Print Preview !== a tool for development</h3>
<p>Finding fiddly print CSS issues would be a lot easier if testing tweaks was a smoother process. Every change cycle equates to:</p>
<ol>
<li>Refresh the page</li>
<li>Invoke Print Preview</li>
<li>Review the change</li>
<li>Close Print Preview</li>
</ol>
<p>Testing print CSS as opposed screen CSS appends two additional steps 2 and 4 &#8211; invoke Print Preview (<tt>Alt + F + V</tt> in Windows for both IE and Firefox) and close Print Preview (correspondingly <tt>Alt + F4</tt>) . Those two simple steps make the business <em>very</em> laborious, <em>even</em> if you can remember those shortcuts.</p>
<h3>Slight workflow improvement: an IE-only trick</h3>
<p>A dirty little script <em>in IE only</em> takes care of the task of invoking Print Preview, which slightly shortens the workflow. Yes, it&#8217;s IE only, but given that it&#8217;s usually IE giving me print CSS grief, every little helps:</p>
<p><code>&lt;script type="text/javascript"&gt;<br />
function printpr()<br />
{<br />
var OLECMDID = 7;<br />
var PROMPT = 1;<br />
var WebBrowser = '&lt;OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"&gt;&lt;/OBJECT&gt;';<br />
document.body.insertAdjacentHTML('beforeEnd', WebBrowser);<br />
WebBrowser1.ExecWB(OLECMDID, PROMPT);<br />
WebBrowser1.outerHTML = "";<br />
}<br />
printpr();<br />
&lt;/script&gt;</code></p>
<p>This script automatically invokes IE&#8217;s Print Preview. Dump it just before the <tt>&lt;/body&gt;</tt> and save yourself a shortcut! You could also call <tt>printpr()</tt> from anywhere else, of course. And <a title="Links to an external website" href="http://www.jguru.com/faq/view.jsp?EID=490852">here&#8217;s the source of the original code snippet</a>, which also shows a few other unrelated options such as <tt>Save As</tt>.</p>
<h3>Why can&#8217;t we refresh the Print Preview?</h3>
<p>All of which finally begs the question, why can&#8217;t we simply refresh the Print Preview with an <tt>F5</tt> shortcut, just like we have in the browser itself?</p>
<p>Probably because I&#8217;m the only person in the world who gets genuinely annoyed by testing print CSS in Print Preview. More fool me, I guess.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikepadgett.com/technology/technical/testing-css-print-media-we-need-a-print-preview-for-developers/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Typekit: when will web fonts flow freely?</title>
		<link>http://www.mikepadgett.com/technology/technical/typekit-when-will-web-fonts-flow-freely/</link>
		<comments>http://www.mikepadgett.com/technology/technical/typekit-when-will-web-fonts-flow-freely/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 16:10:17 +0000</pubDate>
		<dc:creator>Mike Padgett</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[browser wars]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.mikepadgett.com/?p=1149</guid>
		<description><![CDATA[Better CSS3 implementation in some browsers brings many more typographic choices. But we're not quite there yet.]]></description>
			<content:encoded><![CDATA[<div class="imgright"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/06/aaa.gif" alt="Embedded web fonts: is it now finally happening?" /></div>
<p>Proper font embedding in a browser is long overdue. We&#8217;ve had to put up with the same old Arial, Verdana, Georgia, Helvetica, Times New Roman for years.</p>
<p>Now that browsers have to some extent caught up with the rest of us, thanks in no small part to a bit of healthy competition, <a title="Links to an external website" href="http://blog.typekit.com/2009/05/27/introducing-typekit/">Typekit</a> has finally answered the call: you&#8217;ll soon be able to choose what fonts drive your website.</p>
<h3>Everyone&#8217;s favourite glue</h3>
<p>We&#8217;ve had <a title="Links to an external website" href="http://www.mikeindustries.com/sifr"><abbr title="Scalable Inman Flash Replacement">sIFR</abbr></a>, we&#8217;ve had <a title="Links to an external website" href="http://www.stuffandnonsense.co.uk/archives/mir_image_replacement.html"><abbr title="Malarkey Image Replacement">MIR</abbr</a> and we&#8217;ve had <a title="Links to an external website" href="http://www.mezzoblue.com/tests/revised-image-replacement/"><abbr title="Revised Image Replacement">RIR</abbr></a>. We&#8217;ve probably had enough.</p>
<p>None of these solutions proved to be ideal, but how often is <em>anything</em> ever ideal on the client side?</p>
<p>Well, let&#8217;s take a look at Typekit. At the time of writing, there isn&#8217;t too much to go on, but what we <em>do</em> know is this:</p>
<ol>
<li>Typekit&#8217;s solution uses (quite a lot of) Javascript</li>
<li>The solution &#8216;downloads&#8217; a font feed from a predetermined location</li>
<li>A &#8216;modern&#8217; browser will interpret <abbr title="Cascading Style Sheets">CSS</abbr> <tt>@font-face</tt> correctly and render the desired fonts</li>
</ol>
<p>So Typekit is merely following in the footsteps of jQuery, Prototype and other <abbr title="Javascript">JS</abbr> libraries. It&#8217;s about using Javascript as a sort of web glue to make things fit together. However, this time around it&#8217;s not being used to cover up for browser naffness.</p>
<p>Typekit will count on consistent support of modern browsers for the <a title="Links to an external website" href="https://developer.mozilla.org/en/CSS/@font-face">@font-face</a> at-rule. This at-rule has actually been around since the <abbr title="Cascading Style Sheets">CSS</abbr> 2.0 specification, though <a title="Links to an external website" href="http://www.w3.org/TR/css3-webfonts/#font-descriptions">a better, verbose description appears in <abbr title="Cascading Style Sheets">CSS</abbr> 3.0</a>. An orthodox implementation of the at-rule looks like this:</p>
<p><code>@font-face {<br />
font-family: "Mike Old Face";<br />
src: url("http://www.mikepadgett.com/fonts/mikefont.otf")<br />
}<br />
/* The .TTF (true type format) will also be supported, as would *any* URL */<br />
</code></p>
<p>Once the font is &#8220;instantiated&#8221;, it can then be utilised (in Hemingway&#8217;s <em>Fiesta</em> sense of the word) normally:</p>
<p><code>h3 {<br />
font: normal 120% "Mike Old Face", "Times New Roman", Times, serif;<br />
}</code></p>
<p><a title="Links to an external website" href="http://webfonts.info/wiki/index.php?title=%40font-face_browser_support">Browser support for <tt>@font-face</tt></a> is still a bit patchy but things are picking up fast and now the browser people have discovered the joy of automatic updating, we can expect a fairly rapid uptake.</p>
<p>On the bright side, it&#8217;ll mean that designers can make more beautiful websites. The dark side is that many other websites are going to get a lot uglier!</p>
<div class="centeralign"><img src="http://www.mikepadgett.com/wp-content/uploads/2009/06/ip.gif" alt="Intellectual property issues with web fonts" /></div>
<h3>But glue can get sticky</h3>
<p>Microsoft tried and failed to get their <a title="Links to an external website" href="http://en.wikipedia.org/wiki/Embedded_OpenType">Embedded Open Type</a> solution accepted by the world at large (there wasn&#8217;t much of anything &#8216;open&#8217; about it, of course). Redmond ended up handing it over the <abbr title="World Wide Web Consortium">W3C</abbr> as a feeble proposal for <abbr title="Cascading Style Sheets">CSS</abbr> 3.0.</p>
<p>One of the itchier reasons for all the fumbling was the issue of <a title="Links to an external website" href="http://lists.w3.org/Archives/Public/www-style/2008Apr/0227.html">proprietary rights to the fonts themselves</a>. This same issue may well cause problems for Typekit, though this time in the reverse sense.</p>
<p>You see, whilst the Typekit solution is likely to appease and perhaps even create uncharacteristic interest from type foundries (it appears to properly respect intellectual property rights), it might not sit well with many designers and even less with developers.</p>
<p>Here&#8217;s why:</p>
<p>The story goes that the Typekit script is going to be pretty hefty. It needs to be to do all the processing it would need to do and how long is that going to take? In addition, the font pattern will then <em>also</em> need to be downloaded (some fonts are marvellously chunky themselves).</p>
<p>Next, the matter of the rights. One of the first things I learned about business is that the real value is in contracts rather than sales, especially when you&#8217;re selling other people&#8217;s products. So it goes without saying that Typekit needs to be a subscription service.</p>
<p>On the one hand, some orgs would sell their chairman to properly and faithfully reproduce their branding online. How on the other, as <a title="Links to an external website" href="http://blog.typekit.com/2009/05/27/introducing-typekit/#comment-274">one commenter suggested</a>, do you now square it with your client that your <em>design</em> will actually attract an ongoing cost? Could this be another opportunity for Open Source or are the foundries on the edge of the precipice into which the music industry has already fallen?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikepadgett.com/technology/technical/typekit-when-will-web-fonts-flow-freely/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Standards</title>
		<link>http://www.mikepadgett.com/technology/technical/web-standards/</link>
		<comments>http://www.mikepadgett.com/technology/technical/web-standards/#comments</comments>
		<pubDate>Mon, 17 Oct 2005 12:31:22 +0000</pubDate>
		<dc:creator>Mike Padgett</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[browser wars]]></category>
		<category><![CDATA[content management]]></category>
		<category><![CDATA[web standards]]></category>
		<category><![CDATA[zeldman]]></category>

		<guid isPermaLink="false">http://localhost/?p=190</guid>
		<description><![CDATA[What progression we have in the field of web development is thanks in no small part to Jeffrey Zeldman.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently two-thirds through <a href="http://www.zeldman.com">Jeffrey Zeldman</a>&#8216;s &#8220;Designing with Web Standards&#8221;.</p>
<p>It was published only a couple of years ago (a long time in Web world, of course) and it&#8217;s interesting to trace the arc of developments since then.</p>
<p class="centeralign"><img src="/legacy/images/client_images/zeldman.gif" alt="Zeldman.com - home of web designer and standards evanglelist Jeffrey Zeldman" height="243" width="350" /></p>
<p>Whilst much of the methodology described in the book is becoming increasingly normal nowadays, I certainly wasn&#8217;t aware of the scale of Zeldman&#8217;s achievements with regard to ending the so-called <a href="http://en.wikipedia.org/wiki/Browser_wars">Browser Wars</a> with the <a href="http://www.webstandards.org">Web Standards Project</a> until now.</p>
<p>Web standards implementation as a strategy has exploded into the forefront of my job, so it is now important to put together a strong business case in order to get buy-in from developers and management. It is no longer enough, it seems, to encourage topical best practice from colleagues.</p>
<p>For many people I&#8217;m dealing with, the understanding of (X)HTML standards seems to be quite practical &#8211; &#8220;table avoidance&#8221; is one of the most visible concerns and, as Zeldman also points out, the problem of automatically generated code from content management applications.</p>
<p>Time will tell how far I can take it, especially for internal systems, but it looks set to be a pretty lonely path for now!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.mikepadgett.com/technology/technical/web-standards/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

