[Learn] Remove redundant "type=text/javascript" in inline scripts

Open Beginner friendly
#1,046 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
85/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
documentation

Research direction

Open the Updating UI with JavaScript lesson linked in the issue and find the inline script example containing type="text/javascript". Remove the redundant attribute so the example uses a plain script element, then review the rendered lesson or documentation checks to confirm the example remains valid.

Written by the indexing model from the issue text.

Description

The example code in Updating UI with JavaScript currently uses:

<script type="text/javascript"></script>

As per the HTML5 spec:

"Authors should omit the type attribute instead of redundantly setting it."

Suggested fix:

- <script type="text/javascript"></script>
+ <script></script>
Dominant language
TypeScript
Stars
4.8k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

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.

More from vercel/next-learn

All issues in vercel/next-learn

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.