From 01cd9d19df0d6ee4fcc37f06cd33e0c1daa01ad8 Mon Sep 17 00:00:00 2001 From: eddymens Date: Tue, 7 Jun 2022 18:39:40 +0200 Subject: [PATCH 1/2] document getSelectorsBySpecificity --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2e9c3412..aba121ce 100644 --- a/README.md +++ b/README.md @@ -114,6 +114,7 @@ There are a few convenience methods on Document to ease finding, manipulating an * `getAllDeclarationBlocks()` – does what it says; no matter how deeply nested your selectors are. Aliased as `getAllSelectors()`. * `getAllRuleSets()` – does what it says; no matter how deeply nested your rule sets are. * `getAllValues()` – finds all `Value` objects inside `Rule`s. +* `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. ## To-Do From 674168b6f2165eaf6f7805feaf284a1cb43155f5 Mon Sep 17 00:00:00 2001 From: eddymens Date: Tue, 7 Jun 2022 18:42:48 +0200 Subject: [PATCH 2/2] fix minor typo --- src/CSSList/CSSList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CSSList/CSSList.php b/src/CSSList/CSSList.php index f21d7f75..148cf19d 100644 --- a/src/CSSList/CSSList.php +++ b/src/CSSList/CSSList.php @@ -274,7 +274,7 @@ public function prepend($oItem) } /** - * Appends an item to tje list of contents. + * Appends an item to the list of contents. * * @param RuleSet|CSSList|Import|Charset $oItem *