Skip to content

Some boolean attributes/properties with weird behavior #2809

Open
@pygy

Description

@pygy

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.

Metadata

Metadata

Assignees

Labels

Area: CoreFor anything dealing with Mithril core itselfType: BugFor bugs and any other unexpected breakage

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions