时间:2025-06-19 18:20:11
路过 因为它是 HTML,或者说 Vue 作者希望 vue template 兼容 HTML 规则 那么它就要按照 HTML 规范去解析 template,不管借助不可见 dom 创建它还是写 parse 解析它。
在 HTML 中,解析到 atrribue value 时有 3 种状态 After attribute value (quoted) stateAttribute value (single-quoted) stateAttribute value (unquoted) state这里的异常对应着 unquoted 13.2.5.38 Attribute value (unquoted) state Consume the next inp…。