奔跑穿過validator.w3.org您的網址顯示了一些警告標誌:
Line 77, Column 14: document type does not allow element "noscript" here; assuming missing "object" start-tag
Line 154, Column 699: document type does not allow element "meta" here
我能夠(潛在)問題縮小到這些線在你的頁面:
document.write('<a href="' + OAS.config.url + 'click_nx.ads/' + OAS.config.sitepage + '/1' + OAS.config.rns + '@' + OAS.config.listpos + '!' + pos + '?' + OAS.config.query + '" target=' + OAS.config.target + '>');
document.write('<img src="' + OAS.config.url + 'adstream_nx.ads/' + OAS.config.sitepage + '/1' + OAS.config.rns + '@' + OAS.config.listpos + '!' + pos + '?' + OAS.config.query + '" border=\"0\" /></a>');
這些document.write()的線路也未能在w3.org驗證:
Line 53, Column 197: character "+" is not allowed in the value of attribute "target"
此外,我認爲這'S b ad使用document.write()進行DOM插入(並且因爲它可能導致阻止頁面呈現)。 你可以改變使用js對象和DOM操作嗎?
FB獲取您的URL後,它通過DOM解析器運行它,當它遇到那些document.write()行時可能會窒息。這些行橫跨兩個document.writes()有一個<a>元素的事實可能會令分析器感到困惑。解析器可能認爲它已經到達頁面的<正文>,因此「正文中的元標籤」錯誤。
作爲一個快速測試,請嘗試將fb:admins元標記放在這些document.write()行的上方。不過,如果解析器仍然ch咽,我不會感到驚訝,但它值得一試。
要測試你的網頁的HTML源,我用這個php.net頁月底在評論中提供的簡單腳本: http://www.php.net/manual/en/class.domxpath.php
它產生的錯誤:
Unexpected end tag : a in /home/dlee/tmp/tmp.html, line: 54
Unexpected end tag : head in /home/dlee/tmp/tmp.html, line: 183
htmlParseStartTag: misplaced <body> tag in /home/dlee/tmp/tmp.html, line: 184
哪裏TMP。 html是保存到文件中的頁面的html。 第54行是前面提到的document.write()行。
讓我知道如果任何進行中的上述結果,我會相應地編輯此答案。
不錯的發現和後續帖子! – 2012-08-09 05:24:24