Blog Entry

Making Sociable XHTML Valid

Just recently I started using the plug-in Sociable, so the visitors can easily submit an individual entry on this site to other popular social network sites. However, when the plug-in is installed and activated I found a minor annoyance: my pages are no longer valid for XHTML 1.0 Strict. The problem is caused by language attribute inside script tag. With a bit of research, I realize that language attribute is deprecated in HTML 4.01, and it is not supported in XHTML 1.0 Strict DTD. The solution is simple and straightforward. You can open sociable.php file in your preferred editor, and find all occurrence of language=”JavaScript” and delete each one of them. Now, you have a plug-in that generates valid XHTML 1.0 Strict code.

Readers' Comments

Make a noise, be the first one to leave a comment!

Leave a Comment

Be respectful and courteous to each other, be relevant with your comment. Offensive comments will be removed!

Allowed XHTML Tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>