Skip to content

Commit 639a01f

Browse files
committed
Fix typos
1 parent dbe84da commit 639a01f

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/wp-includes/html-api/class-wp-html-processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1245,7 +1245,7 @@ public static function is_void( $tag_name ) {
12451245

12461246
/**
12471247
* Indicates that the parser encountered more HTML tokens than it
1248-
* was able and has bailed.
1248+
* was able to process and has bailed.
12491249
*
12501250
* @since 6.4.0
12511251
*

tests/phpunit/tests/html-api/wpHtmlProcessorBreadcrumbs.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function data_single_tag_of_supported_elements() {
6969
* Ensures that no new HTML elements are accidentally partially-supported.
7070
*
7171
* When introducing support for new HTML elements, there are multiple places
72-
* in the HTML Process that need to be updated, until the time that the class
72+
* in the HTML Processor that need to be updated, until the time that the class
7373
* has full HTML5 support. Because of this, these tests lock down the interface
7474
* to ensure that support isn't accidentally updated in one place for a new
7575
* element while overlooked in another.
@@ -254,7 +254,7 @@ public function test_fails_when_encountering_unsupported_markup( $html, $descrip
254254
public function data_unsupported_markup() {
255255
return array(
256256
'A with formatting following unclosed A' => array(
257-
'<a><strong>Click <a supported><big unsupported>Here</big></a></strongu></a>',
257+
'<a><strong>Click <a supported><big unsupported>Here</big></a></strong></a>',
258258
'Unclosed formatting requires complicated reconstruction.',
259259
),
260260

@@ -343,6 +343,7 @@ public function data_html_target_with_breadcrumbs() {
343343
'P after closed P' => array( '<p><i>something</i></p><p target>This one</p>', array( 'HTML', 'BODY', 'P' ), 2 ),
344344
'A after unclosed A' => array( '<a><a target>', array( 'HTML', 'BODY', 'A' ), 2 ),
345345
'A after unclosed A, after a P' => array( '<p><a><a target>', array( 'HTML', 'BODY', 'P', 'A' ), 2 ),
346+
// This one adds a test at a deep stack depth to ensure things work for situations beyond short test docs.
346347
'Large HTML document with deep P' => array(
347348
'<div><div><div><div><div><div><div><div><p></p><p></p><p><div><strong><em><code></code></em></strong></div></p></div></div></div></div></div></div></div></div><div><div><div><div><div><div><div><div><p></p><p></p><p><div><strong><em><code target></code></em></strong></div></p></div></div></div></div></div></div></div></div>',
348349
array( 'HTML', 'BODY', 'DIV', 'DIV', 'DIV', 'DIV', 'DIV', 'DIV', 'DIV', 'DIV', 'DIV', 'STRONG', 'EM', 'CODE' ),

tests/phpunit/tests/html-api/wpHtmlSupportRequiredOpenElements.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* the way the document should be parsed. BUTTON creates a kind of boundary in the
1313
* DOM tree and implicitly closes existing open BUTTON elements.
1414
*
15-
* Without these tests a developer needs to know investigate all possible places they
15+
* Without these tests a developer needs to investigate all possible places they
1616
* might need to update when adding support for more elements and risks overlooking
1717
* important parts that, in the absence of the related support, will lead to errors.
1818
*
@@ -322,7 +322,7 @@ public function test_has_element_in_table_scope_needs_support() {
322322

323323
/**
324324
* The check for whether an element is in SELECT scope depends on
325-
* the OPTGROUP and OPTION elements..
325+
* the OPTGROUP and OPTION elements.
326326
*
327327
* @since 6.4.0
328328
*

0 commit comments

Comments
 (0)