Skip to content

TypeError: Cannot read properties of undefined (reading 'toLowerCase') in parseHTML of codeblock #1344

@Karl-Wu

Description

@Karl-Wu

Describe the bug
Got TypeError: Cannot read properties of undefined (reading 'toLowerCase') while calling tryParseHTMLToBlocks.
The HTML is not well-formed which was converted by readability.js.

To Reproduce

  1. Open the following link
    https://stackblitz.com/edit/github-xpg9ndgd?file=package.json,html-with-codeblock.ts,App.tsx
  2. Check the output of dev console

Misc

  • Node version:
  • Package manager:
  • Browser:
  • I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions