Saturday, August 07, 2004

Javascript, Konqueror/Safari and Enkoder

I use the old Windows command-line version of the Enkoder. As it stands, it generates a bunch of document.write() vomit. This of course doesn't work if you want to serve a page as XHTML. You need to use the DOM.

My first take was to replace each string extraction as

which works in IE and Gecko. But that generates a mess in Konqueror. This works well there as well:

Which is odd, since they should be equivalent.

Alas the current Enkoder version is not only not available as a free-standing .exe except on Mac, its output is not at all amenable to rephrasing as DOM manipulation, being a blob that expands (somehow) in situ.

No comments :