Skip to content

significant whitespace added inside <textarea> and <pre> #374

Closed
@JasonWoof

Description

@JasonWoof

originally reported here 9.5 years ago: https://sourceforge.net/p/tidy/bugs/787/

tidy adds whitespace inside textarea and pre tags. This changes the meaning of the document.
If I run tidy on the following:

<textarea>foo</textarea>

tidy turns this into:

<textarea>
foo
</textarea>

See the above link for more details and discussion.

The HTML5 spec says to ignore the first character in a textarea if it is a newline, but I don't think it says to ignore a newline at the end.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions