Skip to content

It is confusing that textarea and input have different placeholder attributes, and only input's appears in the TOC #31

@denis-sokolov

Description

@denis-sokolov

Please correct me if this is an incorrect place or form for submitting issues. It seems the repository is new and I could not find any guidelines.

Since d534237, placeholder attribute of textarea elements can contain newlines. (W3C version still forbids newlines. There is an open bug about it.)
However, the specification still mentions the prohibition of newlines in the section on placeholder and does not mention an exception: html.spec.whatwg.org, developers.whatwg.org.

In addition, the version at html.spec.whatwg.org directly links from the section on textarea to the misleading section on placeholder.

(It seems I got very tired looking at all specs and my previous observations are mostly incorrect.)

The common section on placeholder in the spec, the one that shows up if I search on developers.whatwg.org for placeholder, forbids newlines and mentions no exceptions for textareas. Perhaps a note is in order?

It took me a while to figure all this out, it was considerably confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions