Closed Bug 841001 Opened 12 years ago Closed 12 years ago

Set the textContent of a multiline textbox at construction so the default value is correctly set

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: mounir, Assigned: mounir)

References

Details

Attachments

(1 file)

Attached patch Patch (deleted) — Splinter Review
Given that the added text node isn't notified, HTMLTextAreaElement has no idea there is a default value [1]. This patch works around the issue by setting the text node in the ctor, making the HTMLTextAreaElement aware of it.
Attachment #713408 - Flags: review?(bzbarsky)
Comment on attachment 713408 [details] [diff] [review]
Patch

r=I-hate-XBL
Attachment #713408 - Flags: review?(bzbarsky) → review+
https://hg.mozilla.org/mozilla-central/rev/aba008d4d794
https://hg.mozilla.org/mozilla-central/rev/c2c4c82fffc5
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Given that bug 597525 has been backed out, I backed out the code written for this bug but kept the test in the tree:
https://hg.mozilla.org/integration/mozilla-inbound/rev/bf4dd3992384
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: