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

Use textContent instead of innerHTML for title matching #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bmcclure
Copy link

@bmcclure bmcclure commented Mar 26, 2023

This is in regards to the issue I posted a little while ago, #45.

I tested the change and it does seem to fix the issue I was having with exact matching. Now, it matches all of my titles properly even when they all use exact matching, whereas before it only matched a few of them with exact matching due to HTML comments.

innerText could also possibly work, but I think textContent is a better choice because it includes only visible text and also merges text from child elements.

Use textContent instead of innerHTML for title matching
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.

1 participant