I'm trying to add FB xmlns attribute to the document's <html>
tag (<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
) dynamically. For some reason adding it like below does not work:
htmltag = document.getElementsByTagName ('html');
htmltag[0].setAttribute("xmlns:fb","http://www.facebook.com/2008/fbml");");
How can I do it?
Thanks!
Update: No jquery or other lib is available.