-
Notifications
You must be signed in to change notification settings - Fork 30
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
Blank/empty HTML comments result in loss of information in that element #45
Comments
For now I'm just regexing this out https://github.com/dgtlmoon/changedetection.io/pull/764/files#diff-97e35d8550009a723110a24b826e4329175e4d159ebe1f2cca6b684fc45197c5R216 |
thank you for reporting this issue. i did a first analysis and see two ways of addressing this:
I will add your example to the unittests cases and do some more additional testing before commiting to a solution. |
@AlbertWeichselbraun anytime :) Thanks for the great project! Here's an example in the wild https://www.homedepot.com/p/Home-Decorators-Collection-Hand-Scraped-Strand-Woven-Sahara-3-8-in-T-x-5-1-5-in-W-x-36-02-in-L-Engineered-Click-Bamboo-Flooring-HL655H/300011064 |
I have created a fix that draws upon parsing node comments (i.e., should be considerably more robust than the regex) in the branch may I ask you to check, whether this solves the problem (so far I can confirm that it works with both examples you provided). Many thanks, Albert |
@AlbertWeichselbraun apologies, i only just saw that! I cant find that branch |
with version
|
Maybe i'm missing some setting that enforces a whitespace where there is a comment block?
|
Using strict indentation handling fixes this (see #83). |
@AlbertWeichselbraun thanks so much :) |
version 2.2.0
I have no idea why this is the case :/ I noticed some sites may use this to stop scrapers
The text was updated successfully, but these errors were encountered: