Skip to content

Handle boolean attributes better #80

@dag

Description

@dag

http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#boolean-attribute

Currently attributes like disabled and checked (there are many more) in blaze-html all take an argument which means you have to give them the empty string or the name of that attribute (which you can misspell), and that the rendering will be cluttered with redundant noise.

I think it would be better to export e.g. disabled :: Attribute and then render that as simply disabled (might require tracking it in the MarkupM type?).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions