mdn / mdn/data

Array value for `media` field in properties.json causes `Value not found in DB!` Error

Open
#372 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

idle
Dominant language
JavaScript
Stars
787
Forks
216
Avg merge
1d 5h
Merged PRs (30d)
6

Description

Setting array as the `media` field's value (in properties.json) causes "_Value not found in DB!_" error on the MDN page
for the following CSS properties:

1. [cursor](https://developer.mozilla.org/en-US/docs/Web/CSS/cursor)

2. [outline](https://developer.mozilla.org/en-US/docs/Web/CSS/outline)

3. [outline-color](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-color)

4. [outline-offset](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-offset)

5. [outline-style](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-style)

6. [outline-width](https://developer.mozilla.org/en-US/docs/Web/CSS/outline-width)

7. [page-break-after](https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-after)

8. [page-break-before](https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-before)

9. [page-break-inside](https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-inside)

I can not find the code that parses these fields from the **properties.json**.

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 media fields in properties.json for cursor, outline, outline-color, outline-offset, outline-style, outline-width, page-break-after, page-break-before, and page-break-inside, then locate the JavaScript code that parses those fields. Reproduce the MDN-page error and trace the array handling; done means these entries no longer produce “Value not found in DB!”.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.