Skip to content

js: make use of implicit casts #783

@jvoisin

Description

@jvoisin

Some methods like setAttribute are automatically casting their parameters to the designed types:

e.setAttribute("tabindex","0")

can be simplified to

e.setAttribute("tabindex",0)

As the documentation says:

Any non-string value specified is converted automatically into a string.

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