This may actually be removing the attribute with Javascript, but the actual HTML that was downloaded and parsed would still be invalid. So, when the Facebook Javascript loads the iframe into your page, you'd need to be able to intercept and alter that before it becomes a part of the DOM.. which is difficult, if not impossible.I have tried every way I can think of and research to simply remove the 3 freaking attributes from the fb iframe including ajax with a timer, and nothing works.
As far as I know, there's no way to do so. The allowtransparency attribute isn't a 'true' HTML attribute defined in any Doctype, so it's not like you can even change your doctype from "<!DOCTYPE html>" to something else to make it work. However, every browser in the last 10 years understands that attribute and uses it as expected.Is there no way to accomplish using FBConnect AND have fully validated code? Is there no other way to get that iframe in the page than the way it is being done, which apparently makes it untouchable?
You *could* change your DOCTYPE to something like:On a related note, is there no way to adjust or comment this bit xmlns:lipsapp="ogp.me/ns/fb/lipsapp#" so that it validates?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.