[Wikipedia建议在属性ID中使用特殊字符时,特别是在将其用作anchor时(特别是法语),请提供一个手动锚。
关于此建议,我有两个问题:
示例:https://fr.wikipedia.org/wiki/Encre#Encres_%C3%A0_%C3%A9crire_et_dessiner
<span id="Encres_.C3.A0_.C3.A9crire_et_dessiner"></span>
<span class="mw-headline" id="Encres_à_écrire_et_dessiner">Encres à écrire et dessiner</span>
与HTML4时代使用的旧ID格式的向后兼容性。 HTML4仅允许在ID中使用少数非字母数字字符。格式类似于percent encoding,但点号而不是百分号(这也是不允许的),加上点本身未得到编码(与百分号编码中的百分号不同),使得此格式有些破损。