question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't handle attribute pattern selector

See original GitHub issue

purgecss doesn’t understand attribute pattern selector like this one from bootstrap 4:

.form-row > [class*="col-"]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:14
  • Comments:18 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
Fflorielcommented, Oct 27, 2020

@evromalarkey ah I see, it’s this issue then: https://github.com/FullHuman/purgecss/issues/392. I’ll look into it.

2reactions
kb-codercommented, Dec 29, 2020

Is there an ETA on the fix for this? I am running into this issue when there is a space: [class*=" col"]

Read more comments on GitHub >

github_iconTop Results From Across the Web

JavaScript/CSS selector for attribute name pattern
I.E I want to find all the elements that start with data-common . I can't find anything on Google for attribute name selectors...
Read more >
Selectors - W3C
In CSS, pattern matching rules determine which style rules apply to elements in the document tree. These patterns, called selectors, may range from...
Read more >
HTML5 Form Validation With the “pattern” Attribute - Web Design
In this tutorial we'll explore HTML's pattern attribute, using it to help us customize the way we validate our forms. Form Validation Video ......
Read more >
CSS selectors - Learn web development | MDN
It is a pattern of elements and other terms that tell the browser which HTML elements should be selected to have the CSS...
Read more >
Attribute Not Equal Selector [name!=”value”] - jQuery API
Because [name!="value"] is a jQuery extension and not part of the CSS specification, queries using [name!="value"] cannot take ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found