Simon Willison’s Weblog

Subscribe

Evil but sometimes unavoidable

23rd July 2002

I’ve seen a few questions on various forums and mailing lists asking if there is a way of using target=“blank” on links in XHTML Strict without running in to a validation error. I’ve put together an example page showing a method of fixing this using the DOM, which also demonstrates Andrew Clover’s fun-but-ugly Evil Mangled Comments Hack.

This is Evil but sometimes unavoidable by Simon Willison, posted on 23rd July 2002.

Next: Excite UK now powered by AllTheWeb

Previous: Swannie's blog

Previously hosted at http://simon.incutio.com/archive/2002/07/23/evilButSomeTimesUnavoidable