taoqf / node-html-parser

A very fast HTML parser, generating a simplified DOM, with basic element query support.
MIT License
1.12k stars 112 forks source link

TypeError: Cannot read properties of null (reading 'toLowerCase') #197

Closed dinhanhthi closed 2 years ago

dinhanhthi commented 2 years ago

I've tried your example and met this error. What I've tried,

var HTMLParser = require('node-html-parser');
HTMLParser.parse('<ul id="list"><li>Hello World</li></ul>');
taoqf commented 2 years ago

Which version are you using? I could not find what was wrong.

taoqf commented 2 years ago

Which version are you using? I could not find what was wrong.

dinhanhthi commented 2 years ago

I used the latest. But that is no longer important (to me). Maybe only I have this problem.