Skip to content
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

selector for baseElement #96

Closed
cAstraea opened this issue May 12, 2016 · 2 comments
Closed

selector for baseElement #96

cAstraea opened this issue May 12, 2016 · 2 comments

Comments

@cAstraea
Copy link

Hello.
Any idea how would go about selecting all divs that have an id that start with pf ? like pf1 , pf2 , etc.
baseElement: ['div#pf * ???'] is there a wildcard match for this ?

@mlegenhausen
Copy link
Member

Wildcards are currently not supported via the baseElement option. If you want to contribute new features you are free to provide a pull request for this feature.

@KillyMXI
Copy link
Member

KillyMXI commented Jun 9, 2021

Version 8 is now live.
It allows to use the new selectors feature for base elements as well.
It uses CSS selectors syntax though.
Attribute value selectors can be used for partial match:

{
  baseElements: {
    selectors: [
      'div[id^="pf"]'
    ]
  }
}

@KillyMXI KillyMXI closed this as completed Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants