Home
last modified time | relevance | path

Searched hist:"3990423560 cec42274c045493f63387a636b239e" (Results 1 – 2 of 2) sorted by relevance

/dokuwiki/_test/tests/Form/
H A DTextareaElementTest.php3990423560cec42274c045493f63387a636b239e Thu Jun 04 14:54:47 UTC 2026 Andreas Gohr <gohr@cosmocode.de> Emit a guard newline in TextareaElement to preserve leading newlines

A browser's HTML parser ignores a single newline immediately after a
<textarea> start tag, so a value whose first character is a newline lost
it on round-trip (e.g. saving a page or section whose source starts with
a blank line silently dropped that line).

Emit a guard newline right after the start tag so the one the browser
drops is absorbed and the value stays intact.

/dokuwiki/inc/Form/
H A DTextareaElement.php3990423560cec42274c045493f63387a636b239e Thu Jun 04 14:54:47 UTC 2026 Andreas Gohr <gohr@cosmocode.de> Emit a guard newline in TextareaElement to preserve leading newlines

A browser's HTML parser ignores a single newline immediately after a
<textarea> start tag, so a value whose first character is a newline lost
it on round-trip (e.g. saving a page or section whose source starts with
a blank line silently dropped that line).

Emit a guard newline right after the start tag so the one the browser
drops is absorbed and the value stays intact.