lukeed / lukeed/validator-lite

replace `classList` instances

Open
#3 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
6
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Replace `classList` on lines [136](https://github.com/lukeed/validator-lite/blob/master/lib/index.js#L136) and [149](https://github.com/lukeed/validator-lite/blob/master/lib/index.js#L149) with `className` alternatives.

Will [increase support](http://caniuse.com/#feat=classlist) from IE10 to IE8 (probably).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open lib/index.js and inspect the classList instances on lines 136 and 149. Replace those uses with className alternatives while preserving the existing form-validation behavior, then verify that both locations work without classList support in older browsers.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.