<?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: Hacking the Technorati Badge or: How I Hacked Document.Write() in Order to Make it Work With application/xhtml+xml</title>
	<atom:link href="http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/feed/" rel="self" type="application/rss+xml" />
	<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/</link>
	<description>Web Standards, Web Culture, Web Everything.™</description>
	<pubDate>Mon, 06 Oct 2008 13:06:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
		<item>
		<title>By: Ara</title>
		<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-220</link>
		<dc:creator>Ara</dc:creator>
		<pubDate>Fri, 12 May 2006 13:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-220</guid>
		<description>&lt;strong&gt;name is required&lt;/strong&gt;: Good call, but I think the parser may complain if you write only a part of a nodeset to the DOM and wait for the next document.write to complete it (hence the stack I coded in the &lt;a href="http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/" rel="nofollow"&gt;latest version of the script&lt;/a&gt; which gathers all the pieces and then inserts them in one shot).

Also, about the broken html--unfortunately that's life. This whole script is a "fix" for a bad practice to begin with. Deciding to use application/xhtml+xml means that your markup has to be perfectly valid and unfortunatley when you import markup from other sources you can't always rely on them to validate. This goes for everyone using these JavaScript includes. The only difference is that for me (and anyone else using real XHTML) the parser bombs when there's a problem with the markup instead of just ignoring it. Thus the need for vigilance. But I'm not too worried. I told Technorati about their broken markup a while ago and they still haven't done a thing about it. So I doubt things will be changing anytime soon. ;-)</description>
		<content:encoded><![CDATA[<p><strong>name is required</strong>: Good call, but I think the parser may complain if you write only a part of a nodeset to the DOM and wait for the next document.write to complete it (hence the stack I coded in the <a href="http://arapehlivanian.com/2006/05/12/documentwrite-fix-for-real-xhtml/" rel="nofollow">latest version of the script</a> which gathers all the pieces and then inserts them in one shot).</p>
<p>Also, about the broken html&#8211;unfortunately that&#8217;s life. This whole script is a &#8220;fix&#8221; for a bad practice to begin with. Deciding to use application/xhtml+xml means that your markup has to be perfectly valid and unfortunatley when you import markup from other sources you can&#8217;t always rely on them to validate. This goes for everyone using these JavaScript includes. The only difference is that for me (and anyone else using real XHTML) the parser bombs when there&#8217;s a problem with the markup instead of just ignoring it. Thus the need for vigilance. But I&#8217;m not too worried. I told Technorati about their broken markup a while ago and they still haven&#8217;t done a thing about it. So I doubt things will be changing anytime soon. ;-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: name is required</title>
		<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-219</link>
		<dc:creator>name is required</dc:creator>
		<pubDate>Fri, 12 May 2006 12:29:27 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-219</guid>
		<description>To solve the "script only works for single 
document.write" problem, why not append?

	el.innerHTML += str;

But of course even if you fix there broken html, there is
always the problem that they can change there source and
broke it again without a warn.</description>
		<content:encoded><![CDATA[<p>To solve the &#8220;script only works for single<br />
document.write&#8221; problem, why not append?</p>
<p>	el.innerHTML += str;</p>
<p>But of course even if you fix there broken html, there is<br />
always the problem that they can change there source and<br />
broke it again without a warn.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: document.write() fix for (real) XHTML &#124; ara pehlivanian&#8212;Web Standards, Web Culture, Web Everything.&#8482;</title>
		<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-215</link>
		<dc:creator>document.write() fix for (real) XHTML &#124; ara pehlivanian&#8212;Web Standards, Web Culture, Web Everything.&#8482;</dc:creator>
		<pubDate>Fri, 12 May 2006 05:16:41 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-215</guid>
		<description>[...] My first attempt only worked with one script tag. My second attempt wasn&#8217;t really an attempt at all. I took an idea I had, quickly typed it into my editor, saved and saw it working fine (on a page with just one script tag in it). I soon realized that it was really bad code and disabled it. [...]</description>
		<content:encoded><![CDATA[<p>[...] My first attempt only worked with one script tag. My second attempt wasn&#8217;t really an attempt at all. I took an idea I had, quickly typed it into my editor, saved and saw it working fine (on a page with just one script tag in it). I soon realized that it was really bad code and disabled it. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ara</title>
		<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-200</link>
		<dc:creator>Ara</dc:creator>
		<pubDate>Mon, 08 May 2006 15:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-200</guid>
		<description>&lt;strong&gt;Patrick&lt;/strong&gt;: I'm working on a way to do that because right now the script only works for single document.write()s. As soon as you have multiple writes in a script my "fix" bombs. I was thinking of building an output string and dumping it every time I encounter a new &#60;script&#62; tag, but I'm having a bit of a hard time processing it while the page is loading. I'll figure something out I'm sure. :-)</description>
		<content:encoded><![CDATA[<p><strong>Patrick</strong>: I&#8217;m working on a way to do that because right now the script only works for single document.write()s. As soon as you have multiple writes in a script my &#8220;fix&#8221; bombs. I was thinking of building an output string and dumping it every time I encounter a new &lt;script&gt; tag, but I&#8217;m having a bit of a hard time processing it while the page is loading. I&#8217;ll figure something out I&#8217;m sure. :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Fitzgerald</title>
		<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-199</link>
		<dc:creator>Patrick Fitzgerald</dc:creator>
		<pubDate>Mon, 08 May 2006 15:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-199</guid>
		<description>Brilliant! I wonder if you can also then "defer" the script so it runs onload or at the end of the page (and thus does not slow down the initial display of the page).</description>
		<content:encoded><![CDATA[<p>Brilliant! I wonder if you can also then &#8220;defer&#8221; the script so it runs onload or at the end of the page (and thus does not slow down the initial display of the page).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hacking the Technorati Badge part Deux &#124; ara pehlivanian&#8212;Web Standards, Web Culture, Web Everything.&#8482;</title>
		<link>http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-195</link>
		<dc:creator>Hacking the Technorati Badge part Deux &#124; ara pehlivanian&#8212;Web Standards, Web Culture, Web Everything.&#8482;</dc:creator>
		<pubDate>Tue, 02 May 2006 16:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://arapehlivanian.com/2006/04/26/hacking-the-technorati-badge/#comment-195</guid>
		<description>[...] In my previous post on Hacking the Technorati Badge I told the tale of how I managed to get it working with the application/xhtml+xml MIME type. Since then I tweaked the technique and managed to get rid of the extra &#60;script&#62; tag immediately preceding the XHTML element you want badge to appear in. I was able to do this by identifying the word &#8220;technorati&#8221; in the src attribute of the &#60;script&#62; tag and then inserting the contents of the badge immediately next to it. [...]</description>
		<content:encoded><![CDATA[<p>[...] In my previous post on Hacking the Technorati Badge I told the tale of how I managed to get it working with the application/xhtml+xml MIME type. Since then I tweaked the technique and managed to get rid of the extra &lt;script&gt; tag immediately preceding the XHTML element you want badge to appear in. I was able to do this by identifying the word &#8220;technorati&#8221; in the src attribute of the &lt;script&gt; tag and then inserting the contents of the badge immediately next to it. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
