CR and LF characters ignored in textarea placeholder

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
Eric4

CR and LF characters ignored in textarea placeholder

Unread post by Eric4 » 2019-02-17, 13:06

Hello,
In textarea placeholder, the carriage return and Line feed characters and ignored. Tested and reproduce with the latest version and a 27.x version, with an old profile and a ne created profile.

Theses characters are well interpreted in this place by Chrome, firefox, Edge, even IE 11.

On the W3C documentation, we can read this :
User agents should present this hint to the user when the element’s value is the empty string and the control is not focused (e.g., by displaying it inside a blank unfocused control). All U+000D CARRIAGE RETURN U+000A LINE FEED character pairs (CRLF) in the hint, as well as all other U+000D CARRIAGE RETURN (CR) and U+000A LINE FEED (LF) characters in the hint, must be treated as line breaks when rendering the hint.
Source : https://www.w3.org/TR/html52/sec-forms. ... laceholder

- OS tested : Win 7 and Win 10
- The exact version of Pale Moon you are using : 28.3.1 x64 desktop
- Basic hardware information if relevant: CPU, graphics card, amount of RAM : AMD
- Steps to reproduce the problem : bug can see here : https://en.webtools.eu.org/dnsview/index_test.php

HTML code :

Code: Select all

<textarea name="domaine" cols="40" rows="5" autofocus="autofocus" placeholder="Type the domains to query...\r\nwebtools.eu.org\radmin.google.com\r1.1.1.1\r..."></textarea>

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35638
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: CR and LF characters ignored in textarea placeholder

Unread post by Moonchild » 2019-02-17, 13:23

Thanks for reporting this spec compliance issue.
Tracking: Issue #977 (UXP)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite