Skip to content

Commit 2f47c32

Browse files
committed
Fix spelling and grammar in documentation
1 parent 0fb0c20 commit 2f47c32

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/wp-includes/html-api/class-wp-css-complex-selector-list.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
* A subset of the CSS selector grammar is supported. The grammar is defined in the CSS Syntax
2222
* specification, which is available at {@link https://www.w3.org/TR/selectors/#grammar}.
2323
*
24-
* This class is rougly analogous to the <selector-list> in the grammar.
24+
* This class is roughly analogous to the <selector-list> in the grammar.
2525
* See {@see WP_CSS_Compound_Selector_List} for more details on the grammar.
2626
*
2727
* This class supports the same selector syntax as {@see WP_CSS_Compound_Selector_List} as well as
@@ -32,7 +32,7 @@
3232
* Combinators may only be used with type selectors in the non-final position, for example:
3333
* - `div [type=input]` is valid because the `div` type selector appears in a non-final position.
3434
* - `[disabled] option` is NOT valid, because the `[disabled]` attribute selector appears
35-
* a non-final position.
35+
* in a non-final position.
3636
*
3737
* These combinators are not supported:
3838
* - Next sibling (`former-sibling + next-sibling`)

src/wp-includes/html-api/class-wp-css-complex-selector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
* This class is used to test for matching HTML tags in a {@see WP_HTML_Processor}.
1414
*
15-
* A compound selector is at least a single compound selector. There may be additional selectors
15+
* A complex selector is at least a single compound selector. There may be additional selectors
1616
* with combinators.
1717
*
1818
* @since {WP_VERSION}

src/wp-includes/html-api/class-wp-css-compound-selector-list.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
* - Pseudo-element selectors (`::before`)
6060
* - Pseudo-class selectors (`:hover` or `:nth-child(2)`)
6161
* - Namespace prefixes (`svg|title` or `[xlink|href]`)
62-
* - No combinators are supported (descendant, child, next sibling, subsequent sibling)
62+
* - Combinators are not supported (descendant, child, next sibling, subsequent sibling)
6363
*
6464
* Future ideas:
6565
* - Namespace type selectors could be implemented with select namespaces in order to

src/wp-includes/html-api/class-wp-css-selector-parser-matcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
/**
11-
* Base class for all CSS Selector praser/matcher classes.
11+
* Base class for all CSS Selector parser/matcher classes.
1212
*
1313
* @since 6.8.0
1414
*
@@ -50,7 +50,7 @@ abstract public static function parse( string $input, int &$offset );
5050
*
5151
* @param string $input The selector string.
5252
* @param int $offset The offset into the string. The offset is passed by reference and will
53-
* be update to the byte after the whitespace sequence.
53+
* be updated to the byte after the whitespace sequence.
5454
* @return bool True if whitespace was consumed.
5555
*/
5656
final protected static function parse_whitespace( string $input, int &$offset ): bool {
@@ -258,7 +258,7 @@ final protected static function consume_escaped_codepoint( $input, &$offset ): s
258258
/**
259259
* Parse an ident token
260260
*
261-
* CAUTION: This method is _not_ for parsing and ID selector!
261+
* CAUTION: This method is _not_ for parsing an ID selector!
262262
*
263263
* > 4.3.11. Consume an ident sequence
264264
* > This section describes how to consume an ident sequence from a stream of code points. It returns a string containing the largest name that can be formed from adjacent code points in the stream, starting from the first.

0 commit comments

Comments
 (0)