Bug Tracker

Modify

Ticket #2094 (closed bug: wontfix)

Opened 6 years ago

Last modified 2 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 6 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 6 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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.