GeezerVison is showing github.com — added <li> to P_FOLLOWED_BY by vedanshshetti · Pull Request #21735 · webpack/webpack
Conversation
vedanshshetti
commented
Aug 15, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
This PR adds the missing <li> tag to P_FOLLOWED_BY in the HTML parser.
According to the HTML Living Standard’s “in body insertion mode”, a
element must be implicitly closed when followed by a
start tag. Browsers implement this behavior, but webpack’s parser did not, causing incorrect parsing of malformed HTML.
This change aligns webpack’s HTML parser with browser behavior and the spec.
What kind of change does this PR introduce?
fix — spec‑compliance correction in the HTML parser.
Did you add tests for your changes?
Yes — a test was added to ensure
is implicitly closed when followed by
.
Does this PR introduce a breaking change?
No.
This change only corrects parsing behavior to match browsers and the HTML Living Standard.
If relevant, what needs to be documented once your changes are merged?
No documentation changes are required.
Use of AI
The code fix was written manually. The corresponding test was written with AI (@mistralai)
Summary by CodeRabbit
-
Bug Fixes
- Corrected HTML minification for paragraphs followed by list items.
- Ensured consistent serialized output whether paragraph closing tags are omitted or explicitly provided.
-
Tests
- Added coverage for paragraph and list-item minification scenarios.
-
Chores
- Prepared a patch release documenting the HTML serialization fix.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
👋 Hi there! This PR was automatically flagged and closed by our quality checks.
If you believe this was a mistake, please review our contributing guidelines
and leave a comment explaining why this is a mistake.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Aug 15, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Caution
Review failed
The pull request is closed.
Note
.coderabbit.yaml has unrecognized properties
CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.
⚠️ Parsing warnings (1)
Validation error: Unrecognized key: "tools"
⚙️ Configuration instructions
- Please see the configuration documentation for more information.
- You can also validate your configuration using the online YAML validator.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation:
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
ℹ️ Recent review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: b40e8e12-ab76-4bd4-8909-b2bc8ef8e986
📥 Commits
Reviewing files that changed from the base of the PR and between 3beb583 and c25e151.
⛔ Files ignored due to path filters (1)
lib/html/data.js is excluded by !lib/html/data.js
📒 Files selected for processing (2)
.changeset/sweet-plants-rule.md
test/HtmlSyntax.unittest.js
📝 Walkthrough
Walkthrough
Changes
HTML serialization
| Layer / File(s) |
Summary |
Paragraph-list serialization coverage test/HtmlSyntax.unittest.js, .changeset/sweet-plants-rule.md |
Tests verify explicit </p> and </li> output for <p> followed by <li>, with or without the source paragraph end tag. A patch changeset documents the P_FOLLOWED_BY correction. |
Possibly related PRs
Suggested reviewers: alexander-akait
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.