jquery / jquery/jquery-migrate

Consider warning against data keys starting with `-ms-`

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

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
2.1k
Forks
476
Avg merge
10m
Merged PRs (30d)
1

Description

In 4.0, data no longer treats -ms ins a special way when camelcasing. In 3.x this was happening because the camelCasing logic was shared with the CSS module which needed it.

Consider warning against such usage. This should be pretty rare and there's no obvious proper way to fix it, so a warning should probably be enough.

If we decide to land it, it should go into both 3.x & 4.x lines.

Contributor guide

Open the contributing guide

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

Start by locating the data camelCasing logic in the jQuery Migrate code and identify how warnings are emitted. Confirm the intended behavior for data keys beginning with -ms-, then ensure the warning and its coverage apply to both the 3.x and 4.x lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.