Comparing version 1.1.0 to 1.1.1
@@ -296,2 +296,6 @@ module.exports = language | ||
if(attr === void 0 || attr === null) { | ||
return false | ||
} | ||
return checkattr[cmp.charAt(0)](attr, rhs) | ||
@@ -298,0 +302,0 @@ } |
{ | ||
"name": "cssauron", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "create matching selectors from css for your very own nested object hierarchy", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -80,27 +80,27 @@ # cssauron | ||
`#gary-busey`: `false`, no match. | ||
`#gary-busey *`: `span.jake-busey`, a single match. | ||
`!#gary-busey *`: `div#gary-busey`, a single match using the `!` subject selector. | ||
`#gary-busey *, p span`: `span.jake-busey`, a single match, though both selectors match. | ||
`#gary-busey !* !*, !p > !span`: `[p, span.jake-busey]`, two matches. | ||
- `#gary-busey`: `false`, no match. | ||
- `#gary-busey *`: `span.jake-busey`, a single match. | ||
- `!#gary-busey *`: `div#gary-busey`, a single match using the `!` subject selector. | ||
- `#gary-busey *, p span`: `span.jake-busey`, a single match, though both selectors match. | ||
- `#gary-busey !* !*, !p > !span`: `[p, span.jake-busey]`, two matches. | ||
## Supported pseudoclasses | ||
`:first-child` | ||
`:last-child` | ||
`:empty` | ||
`:root` | ||
`:contains(text)` | ||
`:any(selector, selector, selector)` | ||
- `:first-child` | ||
- `:last-child` | ||
- `:empty` | ||
- `:root` | ||
- `:contains(text)` | ||
- `:any(selector, selector, selector)` | ||
## Supported attribute lookups | ||
`[attr=value]`: Exact match | ||
`[attr]`: Attribute exists and is not false-y. | ||
`[attr$=value]`: Attribute ends with value | ||
`[attr^=value]`: Attribute starts with value | ||
`[attr*=value]`: Attribute contains value | ||
`[attr~=value]`: Attribute, split by whitespace, contains value. | ||
`[attr|=value]`: Attribute, split by `-`, contains value. | ||
- `[attr=value]`: Exact match | ||
- `[attr]`: Attribute exists and is not false-y. | ||
- `[attr$=value]`: Attribute ends with value | ||
- `[attr^=value]`: Attribute starts with value | ||
- `[attr*=value]`: Attribute contains value | ||
- `[attr~=value]`: Attribute, split by whitespace, contains value. | ||
- `[attr|=value]`: Attribute, split by `-`, contains value. | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22123
671