Skip to content

Commit 0acab11

Browse files
Apply suggestion from @mukeshpanchal27
Co-authored-by: Mukesh Panchal <[email protected]>
1 parent 03fb7f0 commit 0acab11

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/phpunit/tests/html-api/wpHtmlProcessor-serialize.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,15 @@ public static function data_provider_serialize_doctype() {
323323
}
324324

325325
/**
326+
* Ensures that leading newlines in PRE, LISTING, and TEXTAREA elements are preserved upon normalization,
327+
* and that normalization is idempotent in these cases.
328+
*
326329
* @ticket 64607
327330
*
328331
* @dataProvider data_provider_normalize_special_leading_newline_cases
332+
*
333+
* @param string $input HTML input containing leading newlines in PRE, LISTING, or TEXTAREA elements.
334+
* @param string $expected Expected output after normalization, which should preserve leading newlines.
329335
*/
330336
public function test_normalize_special_leading_newline_handling( string $input, string $expected ) {
331337
$normalized = WP_HTML_Processor::normalize( $input );

0 commit comments

Comments
 (0)