I'm a 32-year-old webdeveloper living in Wateringen, working in Rotterdam, The Netherlands.
This is my personal weblog.
Sometimes I make art with code.
I like to make lots of photos, of which I post my faves here.
Mail me at milovermeulen at gmail dot com!
View all photos, or filter by faves, art, concerts, trips, animals, black-and-white, street shots, squares, more...
XHTML 1.1
Content-type: application/xhtml+xmlheader to browsers that support it, meaning Mozilla will regard each page as xml and won't show the content if there's an error in the markup.Which meant spending a couple of hours going through the monthly archives, correcting each entry that triggered an xml parse error. Now all of the 2300+ entries are
validwell-formed x(h)tml and I have learned to never ever not end my &'s in amp; or use < instead of < in javascript: hrefs (damn those bookmarklet for-loops).Remaining Javascript-weirdness resulting from the switch:
- The 'hide searches' link above the Referrers disappears after the first click, something to do with my use of innerHTML no doubt.
Update 1: Okay, the 'hide searches' thing was easy to fix; I can simply setdocument.write(which I use to generate spam-safe mailto: links) no longer works, I'll have to use a more DOMmy method (explained here);.firstChild.nodeValueinstead of.innerHTMLto make the link text change.Update 2: My new method of generating mailto: links is as follows: I write out email addresses in this form
<span class="mailto">domain,account,name</span>which is converted to
<a href="mailto:account@domain">name</a>by the following function:
function setMailtoLinks() { if (!document.getElementsByTagName) { return; } ar_spans = document.getElementsByTagName('span'); for (i=0; i<ar_spans.length; i++) { if (ar_spans[i].className == 'mailto') { ex = ar_spans[i].firstChild.nodeValue.split(','); tmp = document.createElement('a'); tmp.href = 'mailto:' + ex[1] + '@' + ex[0]; tmp.appendChild(document.createTextNode(ex[2] ? ex[2] : ex[1] + '@' + ex[0])); ar_spans[i].replaceChild(tmp, ar_spans[i].firstChild); } } }tags:- this site
posted Thursday, October 30, 2003comments
1. posted by JW at 17:30 on October 30, 2003
2. posted by Arthur! at 18:22 on October 30, 2003
I haven't had any problems since I switched. I don't think the 'fear' of checking every page should stand in the way of changing you content-header.
3. posted by pinder at 22:56 on October 30, 2003
4. posted by milov at 23:02 on October 30, 2003
5. posted by mkt,bob,Bob at 23:35 on October 30, 2003
Dikke pluim in je reet, dat jij daar wel zin in had!
6. posted by mijnkopthee.nl,bob,Bob at 23:37 on October 30, 2003
7. posted by Bob at 23:38 on October 30, 2003
8. posted by milov at 00:55 on October 31, 2003
Anyway, it's fixed now.
« photo: seagull | Main | photo: sunny disposition »