tc39 / tc39/proposal-decimal

Existing decimal usage in the web platform

Open
#80 5 comments 7 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
638
Forks
20
PR merge metrics
No merged PRs in 30d

Description

I stumbled across https://github.com/WebKit/WebKit/blob/main/Source/WebCore/platform/Decimal.cpp today. This is apparently used for <input>, see https://github.com/WebKit/WebKit/blob/main/Source/WebCore/html/InputType.cpp.

I think a goal of this effort needs to be that it can serve as a replacement of this existing Decimal class (or expose the existing class to script).

This relates to #4 but seemed different enough to warrant its own issue.

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 reading WebKit's Source/WebCore/platform/Decimal.cpp and Source/WebCore/html/InputType.cpp to understand the existing decimal usage for input elements. Then compare that usage with the proposal's intended API and determine whether the work should replace the class or expose it to script; done means the direction and scope are clearly defined.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.