racket / racket/scribble

Wishlist for HTML/JS improvement

Open
#276 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
250
Forks
102
Avg merge
11d 11h
Merged PRs (30d)
1

Description

  • Use type="search" for the search box, which is semantically more correct and give us the "clear" button automatically in many browsers
  • Refactor the use of keyCode, which is deprecated.
  • Refactor the use of non-standard HTML attributes. This might not be always possible because some non-standard attributes are documented publicly (e.g., x-source-module).
  • Instead of parsing the query string ourselves, use new URL(location.href).searchParams.get(...).
  • == / != is evil. Use === / !== everywhere.
  • Avoid unsafe innerHTML set. E.g., https://docs.racket-lang.org/reference/index.html?ctxtname=%3Cdiv%20style=%22color:%20red%22%3Efoo%3C/div%3E
  • Replace deprecated tags with appropriate tags where applicable

Contributor guide

No contributing guide indexed for this repository

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 locating the HTML and JavaScript that generate the search box and handle query-driven pages. Review each remaining unchecked item, especially non-standard attributes, equality checks, innerHTML usage, and deprecated tags, then verify that the affected pages retain their behavior without the reported unsafe or deprecated patterns.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, javascript
Domain
frontend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.