Skip to content

ara pehlivanian

Web Standards, Web Culture, Web Everything.™

Archive for the 'Standards' Category

document.write() fix for (real) XHTML [v0.5.1]

A script that gets AdSense, the Technorati Badge and other 3rd party JavaScript working with application/xhtml+xml.

Hacking the Technorati Badge part Deux

The code below is out of date. For the latest version see document.write() fix for (real) XHTML
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 [...]

And now for a little progressive enhancement

I reworked my feeds page to incorporate some relatively advanced CSS features that are only supported by modern browsers such as Firefox. Likewise the post contains some advanced CSS functionality itself.

Hacking the Technorati Badge or: How I Hacked Document.Write() in Order to Make it Work With application/xhtml+xml

Technorati, like Google’s AdSense uses JavaScript to insert content into your site via the document.write() method. Unfortunately document.write() isn’t supported in the XML DOM (which is what this site uses when viewed in Firefox when served with the application/xhtml+xml MIME Type). Well, I hacked the document.write() method to circumvent the problem.

Calling all Beta Testers

I’m writing a little something and would like to run it past a few Beta Testers. If you’re interested, contact me.

Skip to navigation

More stuff by Ara elsewhere on the web

    Snook Approved!

    © 2005-2008, Ara Pehlivanian.

    Stock photography courtesy stock.xchng. This site uses Akismet to catch spam (56,305 caught since May 2006) is hosted by DreamHost and powered by WordPress.