Buca Bay - Always nice

Dua tiko noqu toa loaloa, na yacana ko… laga mai…

Get Satisfaction and W3C Compliance

February9

We recently have tried using Get Satisfaction to complement our support efforts at Fiji Web Design. It is a very interesting concept, using and open support channel that is transparent, viewable by anyone.

What GetSatisfaction offers is just the platform for providing support. The actual support is carried out in their open message boards, by whoever wants to pitch in.

Today I noticed that our site was not passing W3C xHTML1.0 standards validation. It appears that the cut and paste codes provided by GetSatisfaction are not xHTML compliant. The issue lies in the embedding of the <style> tag in the <body> section.

The solution is to either load the code in the <head> section, or a rewrite, which is what I did.

The actual snippet looks something like this:





The xHTML valid version would be:



Now the JavaScript is encapsulated in comments, so special characters like < or & will not cause validation errors. The <style> declaration is also moved to JavaScript, so the JavaScirpt writes it to the document instead.

The results is a great simple to use service while keeping your website W3C compliant.

 
posted under web development

Email will not be published

Website example

Your Comment:

 
Tag Cloud