question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unclear instructions for RWD (Beta) / Learn Accessibility by Building a Quiz / Step 38

See original GitHub issue

Affected page

RWD (Beta) / Learn Accessibility by Building a Quiz / Step 38

Explanation

The final instructions for this step say:

“Then, give the textarea placeholder text describing an example answer.”

Since the instructions mention “placeholder” I think it is safe to assume that some people will think they should use the placeholder attribute on the textarea to fulfill this requirement. But the code check test checks the textContent of the textarea:

assert.notEmpty(document.querySelectorAll('div.answer')?.[1]?.querySelector('textarea')?.textContent);

So using the placeholder attribute will result in the following hint:

“You should give the textarea placeholder text describing an example answer.”

Which does not make it clear that the example answer should be embedded in the textarea instead of using the placeholder attribute.

Based on the current instructions I think most users will assume that the placeholder attribute should be used to complete this step and the test should be updated accordingly.

System

  • Device: Desktop
  • OS: Linux/Fedora 34
  • Browser: Firefox
  • Version: 95.0.2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
bbsmoothcommented, Jan 3, 2022

Perfect. I’ll submit a PR for this in just a bit.

0reactions
ShaunSHamiltoncommented, Jan 3, 2022

Thank you, for opening this.

When I wrote this, I vaguely remember reading a resource mentioning using the placeholder attribute on textarea was not the recommended approach. However, as I cannot find that, I agree using the placeholder attribute in this case seems like the better option.

Yes, this will require a rewrite for all subsequent lessons. However, this usually is a simple Find and Replace.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Learn Accessibility by Building a Quiz - Step 38 - HTML-CSS
Learn Accessibility by Building a Quiz - Step 38 - HTML-CSS - The freeCodeCamp Forum.
Read more >
FreeCodeCamp Learn Accessibility by Building a Quiz
Accessibility is making your webpage easy for all people to use – even people with disabilities.In this video, we build a quiz webpage....
Read more >
Learning Web Design, Fourth Edition
Learning Web Design. Fourth Edition. A Beginner's Guide to HTML, CSS, JavaScript, and Web Graphics. Jennifer Niederst Robbins.
Read more >
2. Classification and Diagnosis of Diabetes
Diagnostic Tests for Diabetes ... Diabetes may be diagnosed based on A1C criteria or plasma glucose criteria, either the fasting plasma glucose ( ......
Read more >
Human Papillomavirus and Cervical Cancer - PMC - NCBI
Other strains that grow primarily in the lining of the mouth produce small elevated nodules that can develop into fatal squamous cell cancers....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found