-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
The fix for elem > :operator
seems to be not right
#3382
Comments
Transcribed from pic for convenience:
I don't get the issue: these cosmetic filters are not procedural filters, while the commit you point at is strictly for procedural filters. So this issue currently is just speculated, there is no real repro steps to make the case appending Same results:
|
As seen in the image of that post: If you simply add I also tested with Adguard extension, the two rules indeed behave differently. |
What "two rules"? Can you please transcribe these rules here? I posted pairs of rules above to show that appending |
Looking at the pic, you were actually right that the two rules could become one:
Replaces both:
Yes, the rules were not the same, both they could be combined into one, so they were redundant in a way. |
Oh, true, I missed that part, however, Sure they can be combined into one filter that matches all children of |
Sure, I understood that part, I never argued against this. I am merely still trying to understand why you think the fix in the commit is wrong -- and somehow you brought the case above as being relevant to the issue reported here. Why do you believe:
Is not the same as:
The second form is what the fix does: add an explicit |
I believe it's different because Chrome spit out different node list, and you said:
|
Please be loquace, it's starting to feel like pulling teeth. What exactly are the two selectors causing two different node lists? |
OK fine, I'll fix it myself. |
You are asking me to read your mind. Look at what I had to go through in order to have a case for me to try, to no avail. I took the time to provide you cases demonstrating the opposite of what you state (and courteously providing you all this in text which you can easily copy/paste). For some reasons you have been unwilling to show make the exact issue, including closing the issue here with no further constructive comment, as if me asking you only the two single selectors with which I can reproduce the purported issue unambiguously was asking too much. |
It's really simple:
I have all explained in posts before, I don't know what is not clear. |
Of course it's not -- I never ever thought it was. The fix does not cause such discrepancy. The fix just adds a
Becomes:
Not:
A single |
I can reproduce. However the element isn't removed because an exception is thrown. For some reasons the prefix selector is an object rather than a string. |
Eh, I guess I read the code wrong... |
Ok, it's because I modified |
I really need a test page that would at least test most filters at once and this would allow me to quickly assess whether something is broken. The breakage was bad here, essentially all |
Describe the issue
The fix here: 37fde84#diff-1c951eedcd0be2e11c02da8fabcc46b5R336
seems to be not right, as the 3 cases have different behavior.
Simply adding
*
will cause the selector to behave differently.One or more specific URLs where the issue occurs
http://example.com/
Screenshot in which the issue can be seen
Steps for anyone to reproduce the issue
Your settings
All default
Your filter lists
All default
Your custom filters (if any)
Nothing
The text was updated successfully, but these errors were encountered: