Skip to content

deno fmt does not terminate with 10 MB HTML file #30982

@nicolo-ribaudo

Description

@nicolo-ribaudo

Version: Deno 2.5.4

I'm trying to parse a large HTML file, which contains "invalid" HTML (it has some self-closing tags that cannot actually be self-closing, which causes it to have also unclosed tags and not properly nested tags, as well as a <?xml ... annotation in the middle of the file).

Browsers render the file in a normal time, and https://github.com/jhy/jsoup can parse+print it in about 2 seconds (but it has some bug that makes it parse the file the wrong way). Prettier takes 25 seconds.

I left deno fmt running for 15 minutes and it gave no results.

File: 10-K__original.htm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions