Skip to content

fix(package): bump html-dom-parser@3.1.5 to fix formatDOM error#856

Merged
remarkablemark merged 1 commit intomasterfrom
fix/html-dom-parser
Mar 6, 2023
Merged

fix(package): bump html-dom-parser@3.1.5 to fix formatDOM error#856
remarkablemark merged 1 commit intomasterfrom
fix/html-dom-parser

Conversation

@remarkablemark
Copy link
Copy Markdown
Owner

What is the motivation for this pull request?

Fixes #855

What is the current behavior?

Parse error:

import parse from 'html-react-parser';

parse('<meta name="author" content="John Doe Mason" />');
TypeError: Cannot read properties of undefined (reading 'length')
 at formatDOM (lib/client/utilities.js)

What is the new behavior?

No error

Checklist:

Fixes #855

```
TypeError: Cannot read properties of undefined (reading 'length')
 at formatDOM (lib/client/utilities.js)
```
@remarkablemark remarkablemark added bug Something isn't working dependencies Pull requests that update a dependency file labels Mar 6, 2023
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 6, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
dist/html-react-parser.min.js 10.35 KB (-0.01% 🔽) 208 ms (-0.01% 🔽) 100 ms (+51.95% 🔺) 307 ms

@remarkablemark remarkablemark merged commit fa1029c into master Mar 6, 2023
@remarkablemark remarkablemark deleted the fix/html-dom-parser branch March 6, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TypeError: Cannot read properties of undefined (reading 'length') in version 3.0.11 on nextjs project

1 participant