FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

element.classList vs element.dataset · Issue #18 · amcss/attribute-module-specification · GitHub

element.classList vs element.dataset #18

Description

I was thinking that there's no way to treat dataset values like classList DOMTokenList

In the CSS we can do element.classList.remove('class-name'), also toggle, add, contains. Using dataset, we don't have this super power, we'll have to use something just like this

I don't know if it's possible to use DOMTokenList with another string because I can't do a = new DOMTokenList(str).... :/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL