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 'length') at formatDOM #417

Closed
remarkablemark opened this issue Mar 6, 2023 · 1 comment · Fixed by #418 or #419
Closed
Assignees
Labels

Comments

@remarkablemark
Copy link
Owner

Expected Behavior

Parses without throwing error:

import parse from 'html-dom-parser';

parse('<meta name="author" content="John Doe Mason />');

Actual Behavior

Throws error:

TypeError: Cannot read properties of undefined (reading 'length')
 at formatDOM (lib/client/utilities.js)

Steps to Reproduce

import parse from 'html-dom-parser';

parse('<meta name="author" content="John Doe Mason />');

This is caused by the newly added line: https://github.com/remarkablemark/html-dom-parser/blob/v3.1.4/lib/client/utilities.js#L88

Reproducible Demo

Environment

  • Version: 3.1.4
  • Platform:
  • Browser:
  • OS:

Keywords

@remarkablemark remarkablemark self-assigned this Mar 6, 2023
@remarkablemark
Copy link
Owner Author

remarkablemark commented Mar 6, 2023

Related to remarkablemark/html-react-parser#855

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant