Bryan Hadaway's Blog
Your Account:   subscribe

bhadaway@gmail.com | Social: Facebook Twitter LinkedIn Google+

W3C Obsession and the Return of target=”_blank”





It was a very dark time in web design history, XHTML Strict and the obsession with W3C Validation had made us slaves to the all mighty “standards-compliance“.

My name is Bryan Hadaway and I was a W3C junkie. I had to see that green, if I didn’t see that green verification I’d stay up for hours searching for workarounds to get my green fix.

A few years later, I found my savior in good old fashioned common sense. I use Firefox religiously and I still very much respect the W3C, but I’ve let go of having to validate every single page even if it didn’t make any sense and wasn’t helpful to visitors of my website.

I still use W3C to check for obvious errors that can be corrected, but I no longer worry about things that aren’t technically errors. The W3C validator just doesn’t agree or recognize everything. The bottom line is, if there isn’t actually any errors in your markup and syntax that breaks anything on the page, you should safely be ignoring W3C nags.

For the longest time the very most likely number one thing that was causing us web designers a headache was the fact that the target="_blank" attribute which was the most logical way to open a link in a new window no longer would validate with the then popular and standards-compliant XHTML Strict doctype. We went through all kinds of drastic workarounds to use JavaScript to inject target="_blank" wherever rel="external" was placed.

So really, we were still using target="_blank", just tricking the W3C validation robot so our pages would still validate. It’s really silly looking back. HTML/CSS Validation has been obsessed about just as much as PageRank. And although, I still think they both have a time and place to mean something… the level of obsession was just ridiculous. And I know I’m not the only one.

However, if you’re still obsessed, well I have good news. With HTML5 comes the return of target="_blank" which fully validates under the HTML5 doctype:

<!DOCTYPE html>

which is completely safe to use. Without further ado, I present the return of target="_blank"

<a href="#" target="_blank">The Return Awwww</a>

For those that think something should never open in a new window, I see where you’re coming from. But, it has a very valid use if done correctly. I’ve actually had way worse experiences opening things in the same window than a new one.

For instance if you’ve ever been applying for something, or filling out a long form, or even writing a story and submitting it, whatever… then you get to a form field that says “IFHF PIN #” with “What’s this?” next to it and naturally you have no idea what that is so you click “What’s this?” and WHAM! you’re taken away from the page losing everything that just took you a half hour to fill out. That is actually the worst thing I can imagine happening regarding how windows open.

Now, as far as new windows opening is concerned the worst scenario here is where all internal pages on the same site are opening in new windows like GoDaddy, the absolute worst host. I personally have my blog set to automatically open all external links in new windows. Why? Because blog articles are informational and chock-full of quick reference links, it doesn’t mean that someone is done reading an article and wants to lose their place over quickly checking a reference.

Well, the User Should Decide Then

I couldn’t agree more, but I think that’s up to the web browser (Firefox, Chrome) to allow that option. Just like most browsers have the right-click context menu option of Open Link in New Window (which I use 9 out of 10 times on links) it should have the option of Open Link in Same Window. I think that’s the clear and obvious answer.

For now, I think it’s better to have some links open in a new windows than the same. Unfortunately, the majority of computer users are not computer savvy and they need some things decided for them at the very basic level.

Where pages opening in a new window’s worst case scenario is an annoyance, a pages opening in the same window’s worst case scenario is screwing up an application (job or app), test, financial info, screwing up an online order, disconnecting a web-based chat, phone call or meeting, disturbing the progress of an upload, download or other progress and the list goes on and on…

What are your thoughts on how windows should be handled?

Thanks for reading, Bryan

Other Reads