gpt4 book ai didi

html - 是否有一些没有分号的有效 HTML 实体?

转载 作者:行者123 更新时间:2023-12-05 03:37:08 24 4
gpt4 key购买 nike

看这个官方entities.json文件中,一些实体的定义没有结束分号。

例如:

"&Acirc": { "codepoints": [194], "characters": "\u00C2" },
"Â": { "codepoints": [194], "characters": "\u00C2" },

在 HTML5 的什么地方记录了它?还是浏览器thing¹

¹ thingextension 中用于向后兼容。

最佳答案

HTML 命名字符列表定义在 https://html.spec.whatwg.org/multipage/named-characters.html是的,其中一些没有尾随 ; 例如 ¬

&not

关于html - 是否有一些没有分号的有效 HTML 实体?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69430815/

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