mdn / mdn/web-components-examples

expanding-list-web-component err

Open
#29 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Content: WebAPI help wanted
Dominant language
JavaScript
Stars
3.4k
Forks
822
PR merge metrics
No merged PRs in 30d

Description

When I switch from Google's English to Chinese;
const nextul = e.target.nextElementSibling;
The value of nextul is null and cannot be expanded.

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 reproducing the expanding-list-web-component error after switching from Google's English to Chinese. Inspect the code around `const nextul = e.target.nextElementSibling` and determine why the expected sibling is missing in that case. Done means the expanding list works for the Chinese locale without breaking the English behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.