Skip to content

Case sensitive :contains()? #116

Open

Description

@facelessuser

This issue will explore the possibility of a case insensitive :contains(). Since we are thinking about expanding :contains() to allow lists, it may make sense to try and do something like what attribute selectors do: :contains(text i). Or maybe we need to create our own custom pseudo class that implements a case insensitive version, such as :icontains().

Nothing currently is settled, and whether this gets implemented or not and what the name of the pseudo-class would be is still up in the air.

Activity

  1. facelessuser commented on Feb 22, 2019

    @facelessuser
    OwnerAuthor

    I guess you could get away with something like :contains(text i, "more text" i). It is easy enough to parse, just not sure how I feel about it though.

  2. facelessuser commented on Jan 26, 2020

    @facelessuser
    OwnerAuthor

    While this may still be worth doing, if we decide to move forward with #175, you could work around this with case insensitive regex. Going either way with these is non-standard. We can do one or both.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: css-customCSS custom selectors.P: maybePending approval of low priority request.T: featureFeature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions