我已将XHTML 1.0严格兼容的网页部署到github页面中。但是,由于CloudFlare邮件保护,发生了错误。它是自动运行的。
[Error] Line 204, Column 160: there is no attribute "data-cfemail"
...on" class="__cf_email__" data-cfemail="4f3c3a3f3f203d3b0f2a373b3c61243d">[emai...
[Error] Line 206, Column 176: there is no attribute "data-cfemail"
...pan class="__cf_email__" data-cfemail="97e4e2e7e7f8e5e3d7f2efe3e4b9fce5">[emai...
[Error] Line 236, Column 30: there is no attribute "data-cfasync"
...script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-...
[Error] Line 236, Column 107: required attribute "type" not specified
...cloudflare-static/email-decode.min.js"></script><script src="assets/js/jquery-...
我可以在GitHub页面中禁用CloudFlare邮件保护吗?
您可以通过创建单独的.xhtml
文件作为index.xhtml
的示例来解决此问题。但是,index.xhtml
不能保证与index.html
相同的行为。