Skip to content

Add class as an alias for className #1310

Open
@Psychpsyo

Description

@Psychpsyo

What is the issue with the DOM Standard?

Currently, to access the class attribute of an element in Javascript, you need to use element.className instead of just element.class.
This is unintuitive and inconsistent with other attributes, and there is little reason for it because class is no longer a reserved word.

Note:
This is just to mirror issue #9379 in the HTML repo.
See it for more details and discussion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions