Skip to content

Commit cc8537d

Browse files
committed
Add test explanation
1 parent 8d39c10 commit cc8537d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ public static function data_modifiable_text_special_pre_tags() {
7070
}
7171

7272
/**
73+
* The HTML Processor has special behavior when a text node starts with whitespace.
74+
* Test that PRE and LISTING `::set_modifiable_text()` handling works correctly
75+
* with leading whitespace.
76+
*
7377
* PRE and LISTING elements ignore the first newline in their content.
7478
* Leading whitespace may split into multiple text nodes in the HTML Processor.
7579
* Setting the modifiable text with a leading newline should ensure that the

0 commit comments

Comments
 (0)