1
1
我不认为你真的在寻找“块”元素(这部分是基于你对我的错误-现在删除-答案的评论)。据我所知,您正在寻找的顶级元素只能出现在 phrasing-content >a>中,并且您希望将它们包装在可以出现在 flow 内容 。 但是关于内容类别的问题是,大多数短语内容也是完全有效的流内容;从 kinds of content in the spec:。 我看到执行您描述的操作的唯一方法是硬编码仅使用短语的元素类型列表,并在循环中对照该列表检查标记名。
该列表当前为:
|
2
1
使用
element
所以像下面这样的事情应该做:
|
3
-1
尝试使用
|
Softly · 单选按钮未按预期取值 1 年前 |
NovoMannen · 导航中的下拉菜单在内容后面重叠 1 年前 |
eXor420 · 如何在脚本标记中使用导出的函数? 1 年前 |
IonicMan · 剑道网格在宽度过大时不显示某些列 1 年前 |
Kernier · 如何将数学公式支持添加到StacksEditor? 1 年前 |
Md. Ibrahim · CSS网格项溢出小屏幕滚动 1 年前 |
Akshay mek · Vscode扩展建议不适用于某些文件夹 1 年前 |