Skip to content

Support negative matching in queries #24

Description

@luigi-agosti

Feature

Allow users to exclude elements from matches using negative qualifiers.

Examples

  • 'submit button not in header'
  • 'login link, not the footer one'
  • 'search box excluding sidebar'

Proposed approach

  1. Parse negative qualifiers (not, excluding, except)
  2. Score candidate elements against the exclusion context
  3. Penalize or filter elements that match the exclusion

Use cases

  • Pages with duplicate elements in different sections
  • Distinguishing between header/footer/sidebar variants

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions