GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — added <li> to P_FOLLOWED_BY by vedanshshetti · Pull Request #21735 · webpack/webpack

Conversation

@vedanshshetti

@vedanshshetti vedanshshetti commented Aug 15, 2026 •
edited by coderabbitai Bot
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.

    All reactions
    vedanshshetti added 5 commits August 15, 2026 22:28
    @vedanshshetti
    added <li> to P_FOLLOWED_BY
    311f80f
    @vedanshshetti
    added tests regarding changes made in #311f80f
    3f5de4b
    @vedanshshetti
    Merge branch 'webpack:main' into main
    0128912
    @vedanshshetti
    changeset
    2060115
    @vedanshshetti
    Merge branch 'main' of https://github.com/vedanshshetti/webpack
    c25e151
    @changeset-bot

    changeset-bot Bot commented Aug 15, 2026

    Copy link
    Copy Markdown

    🦋 Changeset detected

    Latest commit: c25e151

    The changes in this PR will be included in the next version bump.

    This PR includes changesets to release 1 package
    Name Type
    webpack Patch

    Not sure what this means? Click here to learn what changesets are.

    Click here if you're a maintainer who wants to add another changeset to this PR

    All reactions

    Sorry, something went wrong.

    Uh oh!

    There was an error while loading. Please reload this page.

    @github-actions github-actions Bot added the area: html Experimental HTML support (lib/html) label Aug 15, 2026
    @github-actions

    github-actions Bot commented Aug 15, 2026

    Copy link
    Copy Markdown
    Contributor

    👋 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.

    All reactions

    Sorry, something went wrong.

    Uh oh!

    There was an error while loading. Please reload this page.

    @github-actions github-actions Bot closed this Aug 15, 2026
    @coderabbitai

    coderabbitai Bot commented Aug 15, 2026 •
    edited
    Loading

    Uh oh!

    There was an error while loading. Please reload this page.

    Copy link
    Copy Markdown
    Contributor

    Review Change Stack

    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

    • webpack/webpack#21734: Adds the same P_FOLLOWED_BY correction and corresponding minification tests.
    • webpack/webpack#21700: Updates optional-tag handling for <p> elements followed by <li> elements.
    • webpack/webpack#21649: Modifies HTML end-tag omission rules for <p> followed by <li> and other elements.

    Suggested reviewers: alexander-akait


    Comment @coderabbitai help to get the list of available commands.

    All reactions

    Sorry, something went wrong.

    Uh oh!

    There was an error while loading. Please reload this page.

    @coderabbitai coderabbitai Bot mentioned this pull request Aug 16, 2026
    fix(html): keep the end tags the parser cannot put back, and mirror <selectedcontent> as an engine does #21743
    Merged
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Reviewers

    No reviews

    Uh oh!

    There was an error while loading. Please reload this page.

    Assignees

    No one assigned

    Labels

    area: html Experimental HTML support (lib/html)

    Projects

    None yet

    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.

    1 participant

    @vedanshshetti
    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.
    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.