Skip to content

Commit 26034b4

Browse files
authored
Merge pull request #368 from EDDYMENS/master
Documented getSelectorsBySpecificity
2 parents fe3509e + 674168b commit 26034b4

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ There are a few convenience methods on Document to ease finding, manipulating an
114114
* `getAllDeclarationBlocks()` – does what it says; no matter how deeply nested your selectors are. Aliased as `getAllSelectors()`.
115115
* `getAllRuleSets()` – does what it says; no matter how deeply nested your rule sets are.
116116
* `getAllValues()` – finds all `Value` objects inside `Rule`s.
117+
* `getSelectorsBySpecificity(int: $specificity)` - finds all selectors with the requested specificity. `$specificity` is an integer with `1` being the highest specificity value. The method behaves just like `getAllDeclarationBlocks()` if no parameter is passed.
117118

118119
## To-Do
119120

src/CSSList/CSSList.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ public function prepend($oItem)
274274
}
275275

276276
/**
277-
* Appends an item to tje list of contents.
277+
* Appends an item to the list of contents.
278278
*
279279
* @param RuleSet|CSSList|Import|Charset $oItem
280280
*

0 commit comments

Comments
 (0)