Skip to content

[Bug]: Loosen the char length limits of HTMLCharacterReference in JSX #14316

@Huxpro

Description

@Huxpro

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

<div> &#00000000000000000020; </div>

Configuration file name

No response

Configuration

No response

Current and expected behavior

As a follow up of the spec change in JSX facebook/jsx#136, we should loose the char limit to better align with the spec and other implementations like TypeScript.

The exact limit is up to discuss. I think 2**8 or 2**16 is more than sufficient.

Environment

I did not run this on local.

@wooorm ran it on the playground

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: jsxoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions