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

Transform: node.tagName is case sensitive #266

Merged
merged 1 commit into from
Dec 19, 2023
Merged

Conversation

arcataroger
Copy link
Contributor

It looked to me like all the node.tagNames were uppercase, even if the original HTML was in lowercase.

The node.tagName === 'a' in the example didn't work for me, but node.tagName === 'A' or node.tagName.toLowerCase() === 'a'` do.

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, but `node.tagName === 'A' or `node.tagName.toLowerCase() === 'a'` do.
@milesj
Copy link
Owner

milesj commented Dec 19, 2023

Thanks

@milesj milesj merged commit 2bec321 into milesj:master Dec 19, 2023
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants