The problem is in the wrong order of checks in ContentFilterRule.
Current implementation:
- Attributes check
- Check if content is empty (return NO if empty)
- Check tag-content and wildcard
Proper implementation:
- Attributes check
- Check if tag-content and wildcard are empty. If so - return YES
- Check if content is empty
- Check tag-content and wildcard