MithrilJS / MithrilJS/mithril.js
Some boolean attributes/properties with weird behavior
Open
@pygy is already working on this.
Since Dec 14, 2022.
Area: Core
Type: Bug
- Dominant language
- JavaScript
- Stars
- 14.5k
- Forks
- 922
- PR merge metrics
- No merged PRs in 30d
Description
Edit: The original title was "Rendering m([spellcheck=false]) results in <div spellcheck="true">", but there are more issues, see below.
As mentioned in MithrilJS/docs#20 by @anonghuser, m([spellcheck=false]) results in <div spellcheck="true">, it should obviously be false.
I don't know if this should be fixed though. In scenarios where you want it not set, statically, you can omit the attribute. For dynamic scenarios the attrs object is a better method.
Contributor guide
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.
Assessment
This issue has not been assessed yet.