無效我在一個網站使用linkedin分享按鈕。 在網站的頭部部分我包括像Linkedin分享按鈕根據W3c
<script src="//platform.linkedin.com/in.js" type="text/javascript">
lang: it_IT
</script>
身體裏面我有一個按鈕標籤
<script type="IN/Share" data-url="some-data"></script>
當我嘗試驗證我的頁面https://validator.w3.org/ 一個LinkedIn腳本我得到的以下錯誤
The text content of element script was not in the required format: Expected space, tab, newline, or slash but found l instead.
linkedin按鈕確實出現並且它也可以正常工作,但是我想知道是否有另一種方法來包含根據W3C有效的linkedin共享按鈕。我從官方的linkedin文檔中獲得了我的代碼:https://developer.linkedin.com/docs/getting-started-js-sdk
爲什麼linkedin構建了一個不符合html規範的組件?
而問題是.....? – Clive
那麼,你想要我們做什麼? Telepathicaly鏈接查看您的HTML,然後通過telekineticaly使用鍵盤修復它? – DanteTheSmith
LinkedIn正在做某件事*真的很奇怪。不是你的錯,但它永遠不會驗證。 – ceejayoz