2011-05-29 96 views

回答

0

没有,你只得到这样的:

Line 1, Column 123: Bad value fb:app_id for attribute name on element meta: Keyword fb:app_id is not registered. 
…="fb:app_id" content="176557225718913"><meta charset="utf-8"><meta name="descr… 
Syntax of metadata name: 
A metadata name listed in the HTML specification or listed in the WHATWG wiki. You can register metadata names on the WHATWG wiki yourself. 
8

我回答这个问题,尽管这是一个老问题,因为我认为这是对任何想在将来对这些信息的价值。埃文可能是正确的,但他认为它不会通过验证,但我认为答案是你想保持property=""属性。从old Facebook developer forum post concerning this question exactly取得的结果是你的文档应该是一个XHTML + RDFa文档。这将在W3C验证,由于DOCTYPE声明:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
    version="XHTML+RDFa 1.0" 
    xmlns:og="http://ogp.me/ns#" 
    xml:lang="en"> 
    <head> 
    <title>Virtual Library</title> 
    <meta property="og:title" content="My Website"/> 
    </head> 
    <body> 
    <p>Moved to <a href="http://example.org/">example.org</a>.</p> 
    </body> 
</html> 

你可以找到更多在W3C spec for RDFa,并在this specific example of <meta property=""/>

+0

这为我修好了,谢谢。 – pharophy 2012-11-28 00:56:56

相关问题