Skip to content

Is it possible to keep the capitalization of HTML nodes? #179

Answered by cfvescovo
Kesocial asked this question in Q&A
Discussion options

You must be logged in to vote

scraper::CaseSensitivity is used by Element::has_id and Element::has_class when checking if an element contains a specific id or class so it's not related to what you get as element values. That depends on HTML serialization and, as element tag names are case insensitive (see https://w3c.github.io/html-reference/documents.html), I think you should avoid treating them as case sensitive

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cfvescovo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants