Closed andyhasit closed 3 years ago
I would take a stab at fixing it, but looking here there seems to be a deliberate switch to uppercase? https://github.com/taoqf/node-html-parser/commit/5bbd878acd0ad2db90752e12b276d63bdcd90615
@andyhasit Yes, it's a break change, so I deprecated 1.2.21 and published 1.3.
I change tagName
to uppercase because you will find the same behavior in browser chrome.
In version 1.2.20
node.tagName
comes back lowercase:In version 1.2.21
node.tagName
comes back uppercase:Patch versions past v1 must not introduce breaking changes like this! It means any tool/project/framework which:
"node-html-parser": "^1.2.8"
)<standard-html-tags>
and<CustomComponentClassTags/>
like React)Is now broken for all installs after 25th August.
We need a 1.2.22 release which fixes this bug ASAP.