fb55 / fb55/htmlparser2

Option to disable implicit HTML changes

Open
#2,428 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

good-first-issue
Dominant language
TypeScript
Stars
4.8k
Forks
402
Avg merge
1m
Merged PRs (30d)
18

Description

hello, thank you for your work!

I love this lib, especially because of the HTML parser's flexibility, as you said in the description: "forgiving HTML parser [..] which takes some shortcuts", It's really handy for parsing poorly formatted pages and, most importantly, for serializing them after making changes without altering the unchanged portions even if they contain invalid HTML

however in v12 you announce some "implicit open/close" which modify this behavior and makes the parser less tolerant and closer the HTML spec compliance

Is it possible to contribute by adding an option to undo these implicit changes, or that's not the direction you want to go in and I need to create a fork?

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 with the HTML parser's v12 implicit open/close behavior described in the issue, and review how parser options currently control related behavior. Done means an agreed option can restore the prior tolerant behavior without changing default parsing; the issue names no files or tests to run.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
web-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.