The code that Facebook provide for adding their Fan Page widget to external sites is not valid for the XHTML 1.0 Strict doctype. Darcy found this out as she attempted to make all of the code on her site valid, and only the widget code remained invalid for the doctype that her Thesis theme uses.
I played around with some code, and came up with something that works in all browsers tested so far, and also passes validation.
It has been tested with the following browsers:
- Firefox 3.5.7, 3.6
- IE 6, 7, 8
- Opera 9.64 (and assumed to work on later versions)
- Chrome 4.0.249.78
- Safari 4.0.4
If you find it works in another browser / browser version, please leave a comment and I’ll add it in.