textarea removes newlines from placeholder but shouldn't
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
People
(Reporter: drew.m.fisher, Unassigned)
References
Details
A bit of a necromancy, but this is no longer an issue in current version (at least not in Nightly) as it now respects line breaks in placeholder.
But should it? I know the W3 spec says so, but W3 specs are often full of bull, that doesn't work in the wild. On the other hand, the WHATWG spec explicitly states placeholder shouldn't contain any line feed characters and if it does it should be stripped. Presumably together with any extraneous white space - a smart thing to do considering html is usually and often automatically indented as it's supposed to be human readable. This can wreck serious havoc on the placeholder text . I can see a use case for allowing line break escape sequences, but allowing literal line breaks is IMHO stupid.
isn't this a duplicate of https://bugzilla.mozilla.org/show_bug.cgi?id=1391044 ?
Comment 6•3 years ago
|
||
Thanks!
Description
•