Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hint text misses newline #12

Closed
puzzlewolf opened this issue Feb 18, 2018 · 2 comments
Closed

Hint text misses newline #12

puzzlewolf opened this issue Feb 18, 2018 · 2 comments

Comments

@puzzlewolf
Copy link

In Firefox on Android, the newlines in the hint text of the extended input field are not shown. Maybe bug in Firefox?

@puzzlewolf
Copy link
Author

In chrome, the newlines are fine.

@tstehr
Copy link
Owner

tstehr commented Feb 18, 2018

Apparently Chrome is actually in the wrong here

The placeholder attribute represents a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. The attribute, if specified, must have a value that contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters.

https://www.w3.org/TR/2017/REC-html52-20171214/sec-forms.html#the-placeholder-attribute

See also https://stackoverflow.com/a/7312658, will probably need fake placeholder behind the textarea.

@tstehr tstehr closed this as completed in fd03406 Feb 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants