Skip to content

Render false literal as “false” #827

Closed
@scoot557

Description

@scoot557

When trying to set a data attribute to boolean values -- if the value is false, it sets it to "".

displayed here: http://jsbin.com/puviteme/1/edit
You can inspect via DOM inspector, or run this in the jsbin console to confirm

$('li').eq(0).data('value');
""
$('li').eq(1).data('value');
true

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions