Closed arcataroger closed 11 months ago
It looked to me like all the node.tagNames were uppercase, even if the original HTML was in lowercase.
node.tagName
The node.tagName === 'a' in the example didn't work for me, but node.tagName === 'A' ornode.tagName.toLowerCase() === 'a'` do.
node.tagName === 'a'
node.tagName === 'A' or
Thanks
It looked to me like all the
node.tagName
s were uppercase, even if the original HTML was in lowercase.The
node.tagName === 'a'
in the example didn't work for me, butnode.tagName === 'A' or
node.tagName.toLowerCase() === 'a'` do.