w3c / w3c/webcrypto

HashAlgorithmIdentifier refers another typedef name AlgorithmIdentifier

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

Nobody has claimed this yet.

editorial question
Dominant language
HTML
Stars
294
Forks
78
PR merge metrics
No merged PRs in 30d

Description

In Web IDL spec, it is not allowed to define two (or more) typedefs for a type.

The Type must not be the identifier of the same or another typedef.

But in WebCrypto spec, we have following typedefs.

typedef (object or DOMString) AlgorithmIdentifier;
typedef AlgorithmIdentifier HashAlgorithmIdentifier;

Should we change the definition of HashAlgorithmIdentifier as (object or DOMString)?

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 with the Web IDL typedef rule and the WebCrypto definitions quoted in this issue. Determine whether the HashAlgorithmIdentifier definition violates that rule, then update the specification text if needed and verify that the resulting typedefs conform to Web IDL.

Written by the indexing model from the issue text.

Assessment

Tech stack
html
Domain
documentation
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.