-
Prerequisites
I tried to reproduce the issue when...
DescriptionMatches-prop fails to trigger when expected Has/has-text/contains all work when text exists. I tested this with another site (works everywhere?). Matches-prop sometimes fails to trigger even if the source HTML has the properties (tested to eliminate loading issues). I noticed this issue while trying to make a filter for when specific values occur. The fact that it works sometimes is very frustrating. I got a bit confused splitting this up/rewriting to fit within the different sections. Sorry if it's a bit redundant or non sequitur due to structure changes. A specific URL where the issue occurs.https://www.bing.com/images?FORM=Z9LH Steps to ReproduceI did check the documentation on PCF's and tested some of them. I tested these patterns on Bing.com:
Expected behaviorScenario #3 should trigger it. If the HTML source contains the property values, they should work with matches-prop. Actual behavior#3 seems to indicate that all values after an image tag's src URLs (or displayed text?) are ignored by the parser, entirely? I think it contradicts the documentation, or at the least I didn't see any such warning. They don't work on all pages or sites. I need to test this more, with different tags. I feel fairly confident that it works for img up until the src URL. The Picker tool was very handy writing the specific paths, BTW! uBO version1.65.0 Browser name and versionFirefox 133 and 141 Operating System and versionWindows 10 and 11 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I have no idea why it says "Need help with blocking". I did not write that. |
Beta Was this translation helpful? Give feedback.
-
So matches-attr and matches-prop are different I got, but I misunderstood which I was dealing with. My knowledge of what an attribute is heavily influenced by DOM Inspector and cursory glances at Mozilla.org. I thought it meant stuff like fonts, hidden/visible, or dragging/selection allowed. |
Beta Was this translation helpful? Give feedback.
Seems like you are confusing "property" with "attribute". You do not need procedural operators to match attributes, it's natively part of CSS syntax:
##.mimg[width]
##.ming[data-bm]
##.mimg[width="236"]