end must be used where the docs say it should not be required (intro)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- javascript
Research direction
Start by reproducing the reported behavior in the linked CodePen and compare it with the introduction example in the hyperscript documentation. Confirm that the example works without the first end terminator and that the existing error no longer occurs, while preserving the shown solution's behavior.
Written by the indexing model from the issue text.
Description
codepen here: https://codepen.io/nicosql/pen/myEJmvB
Per the docs, https://hyperscript.org/docs/#introduction - the below should work without having to use end but instead it gives the below error.
Expected behavior: The below should work without having to use end
The end terminator can often be omitted for both features and statements if either of these conditions hold:
Another feature starts:
<button _="on click if true log 'Clicked!'
on mouseenter log 'Mouse entered!'">
Click Me
</button>
error:
"hyperscript errors were found on the following element:" <button _="on click if true log 'Clicked!'
on mouseenter log 'Mouse entered!' end">
Click Me
</button> "
" "Expected 'end' but found 'on'
on mouseenter log 'Mouse entered!' end
^^
" "Error: Expected 'end' but found 'on'
solution:
<button _="on click if true log 'Clicked!' end
on mouseenter log 'Mouse entered!'">
Click Me
</button>
- Dominant language
- JavaScript
- Stars
- 3.8k
- Forks
- 171
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bigskysoftware/_hyperscript
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#688 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bigskysoftware/_hyperscript#678 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bigskysoftware/_hyperscript#676 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
bigskysoftware/_hyperscript#695 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 62/100
bigskysoftware/_hyperscript#687 ·
All issues in bigskysoftware/_hyperscript
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·