bigskysoftware / bigskysoftware/_hyperscript
Error on adding attribute with specified value
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
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)
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue with the HTML example and inspect the parser locations reported in core.js:1149 and core.js:1169. Check how the add command parses @disabled='true', then verify that the example no longer produces the Unexpected Token error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100