W3C validation problems with FB meta tags + iframes

Possible Duplicate:
Facebook Connect Won't Validate

I'm working on making our site W3C compliant. Here's the problem:

The "meta property ..." tags require the XHTML+RDF doctype. I use the following:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">

The problem is, this doctype does not support iframes and cause them to fail validation. The iframes come from our advertising department (which I have no control over) so I can't just remove/replace them.

Is there a doctype that supports both the "meta property" tag and iframes? If not, how would you handle this?


Couldn't you use jquerys $.get function to get the code for the ad?

$.GET('http://www.advert.com/clickme.php', function(a) {
    $("#advertdiv").html(a)
});

// Edit - just so its clear, your 'clickme.php' would be hosted on your site, then use PHP to pull the data for the ad.

链接地址: http://www.djcxy.com/p/69688.html

上一篇: 无法通过xpath访问具有多个名称空间的xhtml文档中的节点

下一篇: FB元标记+ iframe的W3C验证问题