Skip to content

HtmlElement.ofNode doesn't do any type html element specific checking #75

Open
@spocke

Description

@spocke

The HtmlElement.ofNode function is just inherited from Element so it allows you to pass in Elements and get them converted to HtmlElements without any check so it's not really type safe.

So this will set the non existing contentEditable property on plain elements.
node->HtmlElement.ofNode->Belt.Option.forEach(HtmlElement.setContentEditable(True))

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