Web Browsers
To Validate Or Not To Validate Your Markup
To be honest, I personally think that as long as my pages work fine and look the same on all the major browsers, I’m fine. But for me, it is also very important to properly balance all my tags and try to keep the pages as close to be valid as possible.
But here is something interesting, these are screenshots of my attempt to validate some of the major Internet players such is Google, Facebook, Twitter etc.
(Click on the images to see them in full size)
(You can try this tool here: http://validator.w3.org/)
It doesn’t look like these guys care either but at the end, it’s up to you to decide if it’s worth it for you to validate your markup and write perfect HTML/XHTML/CSS…
document.getElementById On All Browsers – Cross browser getElementById
Here is a little JavaScript function that gets an object according to it’s id and it’s cross browser.
/********************************************************************* * Get an object, this function is cross browser * Usage: * var object = get_object(element_id); * @Author Hamid Alipour http://blog.code-head.com/ **/ function get_object(id) { var object = null; if (document.layers) { object = document.layers[id]; } else if (document.all) { object = document.all[id]; } else if (document.getElementById) { object = document.getElementById(id); } return object; } /*********************************************************************/
Acid Test and different web browsers
Acid test is a test to identify problems web browsers have when rendering web pages.
There are 3 versions Acid Test 1, 2 and 3.
But here is how Acid Test 2 works on my different browsers:
Retarded Internet Explorer 7:

!!!
Now, none of my browsers passed Acid Test 3!!!
It should look like this:

Of all the browsers, all perform almost the same but only Internet Explorer is way off, I don’t know what the developer team who is in charge of Internet Explorer does at Microsoft every day. I’d say all of them deserve to be fired!!!
Of all the other browsers, I think Apple Webkit rendering engine is the best (Google Chrome and Apple Safari) which I think is another reason for Google to use it in their browser Chrome.
Apple Webkit is a state of the art and open source HTML rendering engine developed and released by Apple.
My first impressions of Google Chrome
1 – It was extremely easy to install.
2 – It looks like a solid product.
3 – It doesn’t crash like IE 8.
4 – It’s fast.
5 – It’s very smooth.
6 – Has spell checking built in. (Just right click on the words that are underlined…)
7 – It’s very simple and elegant looking.
8 – Has nice new JavaScript engine V8.
9 – Has a nice JavaScript console and debugger.
10 – It doesn’t take 3 seconds (15 million instruction) to open a new tab.
11 – When you right click on a link it says “Copy link address” not “Copy shortcut”
I’m using Google Chrome to write this and it might be the end of IE horror for me
(and yes I don’t like Firefox…)
I also noticed that Cnet news wrote this funny article:
http://news.cnet.com/8301-17939_109-10030522-2.html
In case the author doesn’t know (which I think they should, before they write for Cnet) that is Google’s general terms of services and applies to all of their products including Gmail:
https://www.google.com/accounts/TOS?loc=US&hl=en
Google Chrome; another browser for your browser arsenal!
Now you can download a beta version here:
I make web pages so I have to have all the possible browsers installed so I can check the pages I code in all of them and make sure they look the same.
So far I have Internet Explorer 7, Internet Explorer 6, Firefox, Opera, Safari and now Google Chrome!
It was a really easy and smooth installation and it even automatically imported my favourites from Internet Explorer.















I'm a programmer at 