gpt4 book ai didi

html - amp 页面的顶级 html 中不允许使用前缀

转载 作者:可可西里 更新时间:2023-11-01 13:47:42 25 4
gpt4 key购买 nike

当在 html amp 页面中放置 ogp.me 的前缀并进行验证时,我收到错误消息 prefix not allowed at top level html。解决方案是什么?

最佳答案

基于文档:AMP HTML Tag Addendum

AMP HTML allows for most HTML5 standard tags and a few additional tags specific to the AMP runtime. The AMP Spec broadly defines the set of tags that are disallowed. AMP Validator implementations, however, must be implemented using a tag whitelist. This addendum lists the set of tags which an AMP Validator should whitelist.

If an HTML tag is not in this list, the AMP Validator does not consider that tag valid in any context. However, many of these tags have additional restrictions. For example <script> is in the list, but custom javascript is not allowed.

唯一的解决方案是删除使 AMP 页面无效的前缀。

关于html - amp 页面的顶级 html 中不允许使用前缀,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39850205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com