Bug Tracker

Ticket #2094 (closed bug: wontfix)

Opened 7 years ago

Last modified 3 years ago

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:
Blocking: Blocked by:

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

Change History

comment:1 Changed 7 years ago by coptang

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

comment:2 Changed 7 years ago by brandon

  • Owner set to brandon

comment:3 Changed 6 years ago by brandon

  • Status changed from new to closed
  • Resolution set to wontfix

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

comment:4 Changed 6 years ago by flesler

  • Milestone changed from 1.2.2 to 1.2.4
Note: See TracTickets for help on using tickets.