Skip to content

build(deps): bump htmlparser2 from 11.0.0 to 12.0.0#1389

Merged
remarkablemark merged 1 commit intomasterfrom
dependabot/npm_and_yarn/htmlparser2-12.0.0
Mar 30, 2026
Merged

build(deps): bump htmlparser2 from 11.0.0 to 12.0.0#1389
remarkablemark merged 1 commit intomasterfrom
dependabot/npm_and_yarn/htmlparser2-12.0.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 23, 2026

Bumps htmlparser2 from 11.0.0 to 12.0.0.

Release notes

Sourced from htmlparser2's releases.

v12.0.0

What's Changed

This release aligns HTML parsing with the WHATWG spec Almost all changes are to HTML mode only — XML mode is unaffected unless noted.

Raw-text & RCDATA tags

  • <iframe>, <noembed>, <noframes>, and <plaintext> are now raw-text tags, their content is no longer parsed as HTML
  • <textarea> now decodes entities like <title> already did
  • Self-closing <script/>, <style/>, etc. now enter their raw-text state (the / is ignored per spec) unless recognizeSelfClosing is enabled

SVG & MathML

  • Tag names inside <svg> are case-adjusted per spec (foreignObject, clipPath, etc.)
  • CDATA sections inside foreign content are treated as text
  • Special-tag detection is disabled inside foreign content
  • Stray </svg> / </math> no longer corrupt the parser's context tracking

Comments & declarations

  • <!-->, <!--->, <!->, <!> now parse as valid comments per spec
  • <?…> and non-DOCTYPE <!…> in HTML mode emit bogus comments instead of being silently dropped
  • <!DOCTYPEhtml> (no space) is recognized as a DOCTYPE
  • Unclosed comments, <!DOCTYPE, <?…, <![CDATA[… at EOF emit the correct token type

Implicit open/close

  • <h1><h6> implicitly close other headings
  • <a> closes a previous <a>
  • Nested <form> is ignored when one is already open
  • <image> is rewritten to <img> outside foreign content
  • </> is silently ignored instead of emitted as text

Other fixes

  • Fixed reset() not clearing attribute state, which could leak data across parseComplete() calls

fb55/htmlparser2#2387

Full Changelog: fb55/htmlparser2@v11.0.0...v12.0.0

Commits

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 23, 2026
@github-actions github-actions bot requested a review from remarkablemark March 23, 2026 10:44
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 23, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0afdcf3) to head (57c82a6).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1389   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          120       120           
  Branches        30        30           
=========================================
  Hits           120       120           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 23, 2026

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/html-dom-parser.min.js 2.25 KB (0%) 45 ms (0%) 45 ms (+144.77% 🔺) 90 ms

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/htmlparser2-12.0.0 branch 2 times, most recently from 0650088 to 3c00ba8 Compare March 29, 2026 21:46
Bumps [htmlparser2](https://github.com/fb55/htmlparser2) from 11.0.0 to 12.0.0.
- [Release notes](https://github.com/fb55/htmlparser2/releases)
- [Commits](fb55/htmlparser2@v11.0.0...v12.0.0)

---
updated-dependencies:
- dependency-name: htmlparser2
  dependency-version: 12.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/htmlparser2-12.0.0 branch from 3c00ba8 to 57c82a6 Compare March 30, 2026 07:04
@remarkablemark remarkablemark self-assigned this Mar 30, 2026
@remarkablemark remarkablemark merged commit 9e72885 into master Mar 30, 2026
20 checks passed
@remarkablemark remarkablemark deleted the dependabot/npm_and_yarn/htmlparser2-12.0.0 branch March 30, 2026 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant