Skip to main content

Bug Tracker

Side navigation

#2094 closed bug (wontfix)

Opened December 26, 2007 05:06PM UTC

Closed April 22, 2008 01:36AM UTC

Last modified March 15, 2012 09:42AM UTC

append to textarea broken in firefox

Reported by: coptang Owned by: brandon
Priority: minor Milestone: 1.2.4
Component: core Version: 1.2.1
Keywords: textarea, append, appendChild Cc:
Blocked by: Blocking:
Description

This is a browser bug but as it breaks jQuery functionality I think it is relevant to raise as a jQuery bug.

append() fails when used on a textarea that has had its content changed (either by typing or by amending the .value through the DOM)

Here is a simple page that demonstrates the bug:

http://terrordome.co.uk/appendbug/

In IE (6 and 7) - no bug, works as expected

In Firefox 2.0.0.11 - append and appendChild fail on an already edited textarea

Opera (9.23) - append and appendChild always fail

Safari (3.03 on win32) - existing value is ignored and just the appendChild(s) values are used

Attachments (0)
Change History (4)

Changed December 26, 2007 05:09PM UTC by coptang comment:1

My mistake, bug title should also mention opera and safari but I can't seem to edit.

Also, wikiformatting has made the last paragraph less than clear. Should be:

In IE (6 and 7) - no bug, works as expected In

Firefox 2.0.0.11 - append and appendChild fail on an already edited textarea

Opera (9.23) - append and appendChild always fail

Safari (3.03 on win32) - existing value is ignored and just the appendChild(s) values are used

Changed February 17, 2008 06:31PM UTC by brandon comment:2

owner: → brandon

Changed April 22, 2008 01:36AM UTC by brandon comment:3

resolution: → wontfix
status: newclosed

The .val() method should be used to get/set form values.

Changed May 13, 2008 05:46PM UTC by flesler comment:4

milestone: 1.2.21.2.4