Closed Bug 1088158 Opened 10 years ago Closed 10 years ago

placeholder not displayed on cloned HTML textarea elements

Categories

(Core :: Layout: Form Controls, defect)

31 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla36

People

(Reporter: john.hunter, Assigned: ehsan.akhgari)

References

Details

(Keywords: regression, testcase)

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36

Steps to reproduce:

See fiddle test case http://jsfiddle.net/johnhunter/c6nge56o/

1. Create a textarea node
2. set the placeholder property
3. Clone the node
4. Append the node to an element in the page


Actual results:

Textarea is rendered without the placeholder text


Expected results:

Textarea is rendered with the placeholder text
The placeholder appears only when the textarea has the focus of the cursor.
(In reply to Loic from comment #1)
> The placeholder appears only when the textarea has the focus of the cursor.

Yes. On focus the placeholder renders. Once focus has triggered rendering then the placeholder functions as expected.
Reg range:
good=2014-04-27
bad=2014-04-28
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=c67a79064fd4&tochange=4d926af89907

Ehsan Akhgari — Bug 997805 - Correctly restore the placeholder text after the editor object is re-attached to a text control as a result of a reframe; r=bzbarsky
Blocks: 997805
Status: UNCONFIRMED → NEW
Component: Untriaged → Layout: Form Controls
Ever confirmed: true
Flags: needinfo?(ehsan.akhgari)
Keywords: regression, testcase
Product: Firefox → Core
Version: 32 Branch → 31 Branch
Thanks a lot for the great bug report with the test case, John!  I have a fix.
Assignee: nobody → ehsan.akhgari
Flags: needinfo?(ehsan.akhgari)
Attachment #8511336 - Flags: review?(roc)
Excellent news, thanks Ehsan.
https://hg.mozilla.org/mozilla-central/rev/178efc7a2007
Status: NEW → RESOLVED
Closed: 10 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: