javascript-tutorial / javascript-tutorial/ru.javascript.info

Ошибка в тестах "DOM, работа со страницей". offsetHeight и clientHeight.

Open
#1,809 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
4.1k
Forks
922
PR merge metrics
No merged PRs in 30d

Description

Кейс в тесте следующий:

image

Правильным ответом тут должен быть вариант: Когда у элемента нет border и полосы прокрутки. Только в этом случае действительно гарантированно совпадают offsetHeight и clientHeight. Думаю стоит сделать здесь тест с выбором одного варианта ответа и добавить предложенный.

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 “DOM, работа со страницей” test case and compare its current answer choices with the proposed single-choice wording. Done when the test accepts “Когда у элемента нет border и полосы прокрутки” as the correct answer and the answer choices reflect the reported behavior of offsetHeight and clientHeight.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.