We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e16e7eb commit 09c0076Copy full SHA for 09c0076
1 file changed
tests/phpunit/tests/html-api/wpHtmlProcessor-serialize.php
@@ -346,6 +346,14 @@ public static function data_provider_normalize_special_leading_newline_cases() {
346
"<pre>\n\nline 2\nline 3</pre>",
347
348
),
349
+ 'Multiple text nodes inside PRE' => array(
350
+ "<pre>\nline 1<!--comment--> still line 1</pre>",
351
+ "<pre>line 1<!--comment--> still line 1</pre>",
352
+ ),
353
+ 'Multiple text nodes inside PRE with leading newlines' => array(
354
+ "<pre>\n\nline 2<!--comment--> still line 2</pre>",
355
356
357
'Leading newline in TEXTAREA' => array(
358
"<textarea>\nline 1\nline 2</textarea>",
359
"<textarea>line 1\nline 2</textarea>",
0 commit comments