Reputation: 41
I think there must be something I'm missing.
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">
Can someone set me straight here?
...Mike
Upvotes: 4
Views: 922
Reputation: 1642
Currently, it seems that the only way for validator + facebook plugin to work is to use HTML5 doctype
<!doctype html>
Upvotes: 0
Reputation: 51
With this
DOCTYPE XHTML+RDFa 1.0
will be work JS
<script type="text/javascript">
$(document).ready(function(){
$('#iframe').after('<iframe src="url" scrolling="no" frameborder="0" overflow:hidden; width:400px; height: 70px;"></iframe>');
});
</script>
Upvotes: 1
Reputation: 9646
You don't need that DOCTYPE, only if you want it to validate at W3.org otherwise you should be fine and the OG tags should still work. You can use the url linter to check this:
http://developers.facebook.com/tools/lint/
I've done this many times just using
<!DOCTYPE html>
I would have just added a comment for this to extend on what MicE said but I don't have enough REP yet!
Upvotes: 0