Skip to content

Boolean attribute rendering differs from Preact #4

@rmales

Description

@rmales

Hi,

Boolean attribute rendering seems to differ from Preact itself (4.8.0 at least).

For example with the JSX:
<div aria-hidden={true} />

preact: <div aria-hidden="true"></div>
preact-render-to-string: <div aria-hidden></div>

http://jsfiddle.net/28ckgyzj/1/ (see console log)

(With ARIA attributes presence doesn't indicate truth as it does with the checked attribute for example).

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions