bigskysoftware / bigskysoftware/_hyperscript

Error on adding attribute with specified value

未关闭
#263 1 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
3.8k
派生
172
PR 合并指标
30 天内没有已合并 PR

描述

Version: 0.9.4 and 0.9.5

Tried the code from an [example](https://hyperscript.org/commands/add/):

``` html
Disable Other Buttons
```

but got an error:

```
[Error] hyperscript errors were found on the following element: (4)
Disable Other Buttons"

""Unexpected Token : =

on click add @disabled='true' to when it is not me
^^

"c — core.js:1149parseHyperScript — core.js:1169R — core.js:1896(анонимная функция) — core.js:1876a — core.js:1430processNode — core.js:1872e — core.js:5638
R (_hyperscript_web.min.js:1:16892)
(анонимная функция) (_hyperscript_web.min.js:1:17879)
a (_hyperscript_web.min.js:1:14554)
processNode (_hyperscript_web.min.js:1:17813)
e (_hyperscript_web.min.js:1:69299)
```

贡献指南

这个仓库没有索引到贡献指南

调研方向

使用 HTML 示例重现该问题,并检查 core.js:1149 和 core.js:1169 中报告的解析器位置。检查 add 命令如何解析 @disabled='true',然后验证该示例不再产生 Unexpected Token 错误。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
frontend
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。