<?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>Josh Netherton &#187; HTML5</title>
	<atom:link href="http://joshnetherton.com/category/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://joshnetherton.com</link>
	<description>I&#039;m a front-end developer and designer based in Atlanta, GA. I&#039;m passionate about web standards and clean markup and really dig code and design.</description>
	<lastBuildDate>Sun, 25 Jul 2010 19:33:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Typekit, HTML5 and Printing in IE</title>
		<link>http://joshnetherton.com/2010/07/typekit-html5-and-printing-in-ie/</link>
		<comments>http://joshnetherton.com/2010/07/typekit-html5-and-printing-in-ie/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 02:12:21 +0000</pubDate>
		<dc:creator>Josh</dc:creator>
				<category><![CDATA[HTML5]]></category>

		<guid isPermaLink="false">http://joshnetherton.com/?p=140</guid>
		<description><![CDATA[While testing a small project I&#8217;m working on couple of nights ago, I came across a printing issue that was only showing up in Internet Explorer. When I&#8217;d print the page (the end goal of the project) the page starts to reload and the content disappears, returning only if I refresh the page. I narrowed [...]]]></description>
			<content:encoded><![CDATA[<p>While testing a small project I&#8217;m working on couple of nights ago, I came across a printing issue that was only showing up in Internet Explorer. When I&#8217;d print the page (the end goal of the project) the page starts to reload and the content disappears, returning only if I refresh the page. I narrowed it down to the Typekit script causing the issue.</p>
<p>Since this is an HTML5 app using jQuery, font-embedding and Remy&#8217;s <a href="http://code.google.com/p/html5shim/">HTML5 shim</a> for IE support, I wanted to make sure it wasn&#8217;t IE&#8217;s printing issues when using HTML5 or @fontface. I created a few quick sample pages (linking to them below in case they can help the Typekit team determine the issue). The final verdict for me was that the issue only occurred when using Typekit with HTML5 in IE7 and IE8 (the two versions of IE that I tested). Since all of the HTML5 pages are using the HTML5 shim it could also be a conflict between Typekit and the shim (which includes <a href="http://www.iecss.com/print-protector/">IE Print Protector</a>).</p>
<p>Luckily I can use @fontface for the particular font I&#8217;m using, so I&#8217;ll be able to go that route for now. The font looks better when using Typekit though, so I look forward to finding a fix for the issue.</p>
<p>I have a support email into Typekit and will post an update when I hear back. If you&#8217;ve run across this issue or have a fix, please let me know.</p>
<p>Test pages:</p>
<ul style="margin-left:10px;">
<li><a href="http://joshnetherton.com/typekit-test/normal-html5.html">HTML5 with no font embedding</a></li>
<li><a href="http://joshnetherton.com/typekit-test/typekit-html5.html">HTML5 using Typekit (with shim)</a></li>
<li><a href="http://joshnetherton.com/typekit-test/typekit-html5-noshim.html">HTML5 using Typekit (without shim)</a></li>
<li><a href="http://joshnetherton.com/typekit-test/fontface-html5.html">HTML5 using @fontface</a></li>
<li><a href="http://joshnetherton.com/typekit-test/typekit-xhtml.html">XHTML using Typekit</a></li>
</ul>
<p><strong>Update:</strong> I heard back from Greg at Typekit (Who was extremely helpful. Thanks, Greg.) and it looks like this is not an issue on their side, but probably with how the HTML shim (or IE Print Protector specifically) is fixing an HTML5 printing issue in IE. IE Print Protector temporarily replaces HTML5 elements with fallback elements for printing and then restores the HTML5 elements on the page. It seems like it tries to reload the Typekit script from the current domain instead of the Typekit url, which is causing the page to hang and not display after printing. I&#8217;ll post an issue on the google code page and see if I can find out more.</p>
<p>I also added an example page above with HTML5 using Typekit and no shim.</p>
]]></content:encoded>
			<wfw:commentRss>http://joshnetherton.com/2010/07/typekit-html5-and-printing-in-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

