Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
Karl-Wu opened this issue Dec 26, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Karl-Wu
Copy link

Karl-Wu commented Dec 26, 2024

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 💖
@Karl-Wu Karl-Wu added the bug Something isn't working label Dec 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant