Simon Willison’s Weblog

Subscribe
Atom feed for hedger-wang

2 items tagged “hedger-wang”

2009

Cross Browser Base64 Encoded Images Embedded in HTML (via) Scarily clever. View the PHP source to see what’s going on—most browsers get image tags that use data URIs starting with data:image/png;base64, but IE gets served a Content-type:message/rfc822 header and a MIME formatted multipart/related document, as used by e-mail clients to embed inline image attachments.

# 17th April 2009, 4:12 pm / base64, browsers, hedger-wang, ie, internet-explorer, mime, php

2007

IEContentLoaded. An alternative method of detecting DOMContentLoaded on IE; works by polling until the doScroll() method on an unattached element stops throwing errors.

# 24th September 2007, 12:10 pm / domcontentloaded, domscripting, hedger-wang, ie, iecontentloaded, javascript, unobtrusive-javascript