Sharepoint 2007: Bad markup in default themes
Today I installed a Windows 2003 Server with SQL Server 2005 and Microsoft Office SharePoint Server 2007 on a computer in the office. There are many companies looking for development services for Sharepoint so I'm aiming to gain some experience in this field.
Just before a year I had a really bad experience in modifying the markup and CSS styles of the default theme of Sharepoint 2003. The thing I remember is tht the markup was really awful, with more than 20 HTML tables nested in one another, which was making it really huge. The same layout appearacne could be achieved with times less HTML code. I'm a big fan of layouts without tables, based on div tags and CSS styles which are compatible with the latest W3C standards. But infact I have nothing against tables when they are used with reason.
...so the first thing I did after installing and updating everything and after attaching Sharepoint to the database was the markup. I just made a right click on the Central Administration portal home page in my Internet Explorer and looked at the markup. A nice surprise :) There were only a few tables left in comparision with the 2003 default themes. I scrolled down. Oh, my God..... some of the tags are with capital letters, OK, no problem, some old HTML standards allow upper case tags. So I just copied all the markup and pasted it in the W3C Markup Validator. God damn, the result was worse than I expected, there were 169 errors. After that I noticed that even the document type definition was missing...
It is just ridiculous. This product costs so much money (check out the prices yourself) and Microsoft did not even made the default themes compatible with the latest standards. So if you want valid XHTML markup you just must create themes yourself or pay money for that. I just can not believe that such things happen with products from a company like Microsoft. And may be it's all my fault, if I didn't know anything about standards I wouldn't notice the bad markup...
Just before a year I had a really bad experience in modifying the markup and CSS styles of the default theme of Sharepoint 2003. The thing I remember is tht the markup was really awful, with more than 20 HTML tables nested in one another, which was making it really huge. The same layout appearacne could be achieved with times less HTML code. I'm a big fan of layouts without tables, based on div tags and CSS styles which are compatible with the latest W3C standards. But infact I have nothing against tables when they are used with reason.
...so the first thing I did after installing and updating everything and after attaching Sharepoint to the database was the markup. I just made a right click on the Central Administration portal home page in my Internet Explorer and looked at the markup. A nice surprise :) There were only a few tables left in comparision with the 2003 default themes. I scrolled down. Oh, my God..... some of the tags are with capital letters, OK, no problem, some old HTML standards allow upper case tags. So I just copied all the markup and pasted it in the W3C Markup Validator. God damn, the result was worse than I expected, there were 169 errors. After that I noticed that even the document type definition was missing...
It is just ridiculous. This product costs so much money (check out the prices yourself) and Microsoft did not even made the default themes compatible with the latest standards. So if you want valid XHTML markup you just must create themes yourself or pay money for that. I just can not believe that such things happen with products from a company like Microsoft. And may be it's all my fault, if I didn't know anything about standards I wouldn't notice the bad markup...
Labels: CSS, HTML, Microsoft, Sharepoint, Sharepoint 2007, W3C Standards, XHTML
