I was referred to this by tcervo through the WordPress forums and I wanted to document it. I am not a big proponent of opening new browser windows with links on my pages, but sometimes it needs to be done. However, using target=”_blank” will break XHTML 1.0 Stric validation. A couple of people have come up with fixes for this. The simplest turns out to be a peice of Javascript documented here Basically instead of using <a target=”_blank” href=”http://blahblah.com”>new link</a> you would use <a rel=”external” href=”http://blahblah.com”>new link</a> and the javascript would do the job of matching the rel tag and putting out a new browser window. In my opinion, there comes a time when compliancy gives way to over enthusiasm and we might be reaching the limit in this case. In order to use a well documented (albeit arcane) HTML feature and keep it compliant with XHTML, one has to […]
[Continue Reading...]