Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Option for ignoring contents of <script> tags

Open
#157 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
testing

Research direction

Start by reading the repository documentation for existing options and the HTML comparison entry point. Determine how an option to ignore the contents of <script> tags should fit with current comparisons. Done means HTML outside those tags is compared while JavaScript contents are excluded, with behavior covered by an appropriate test.

Written by the indexing model from the issue text.

Description

Currently reading through the docs, I haven't found any options that enable the overlooking of certain HTML tags. In my case, I'd like to compare strictly the HTML contents of a file, and leave the JS for some other time.

Is there an option, or plans for one?

Dominant language
JavaScript
Stars
217
Forks
45
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 bem/html-differ

All issues in bem/html-differ

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.