🚨Use of innerHTML

Open
#37 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend, security

Research direction

Open dom.js at line 65 in the linked revision and inspect how the displayed information is inserted into the DOM. Determine a safer approach that preserves the expected output without the flagged innerHTML usage. Done means the information still appears correctly and the security concern is addressed.

Written by the indexing model from the issue text.

Description

https://github.com/fac-14/NDJS-API/blob/df236cfbc24fd346a72ea94df533a134282921c7/dom.js#L65

This can be a security issue - are there any other ways you could have inserted your info into the DOM without using this?

Dominant language
JavaScript
Stars
0
Forks
0
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 fac-14/NDJS-API

All issues in fac-14/NDJS-API

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.