Closed Bug 32795 Opened 25 years ago Closed 25 years ago

DOM sees old value in textarea after changing the value

Categories

(Core :: DOM: Core & HTML, defect, P3)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: jcarpenter0524, Assigned: jst)

Details

(Whiteboard: [nsbeta2+])

Attachments

(2 files)

Overview Description: If you use DOM to change the value in a textarea, then look at that value, DOM still sees the old value Steps to Reproduce: - see testcase Actual Results: DOM sees "default value 1" as the value of the textarea Expected Results: DOM should see "fun fun fun" as the value of the textarea Build Date & Platform Bug Found: All platforms 2000-03-21-06
Attached file attaching testcase (deleted) —
Keywords: beta1
Target Milestone: ---
Please identify ASAP any known high-profile sites that depend on this. Thanks, Jim
Putting on the PDT- radar for beta.
Whiteboard: [PDT-]
QA Contact: gerardok → janc
adding beta2 keyword, and removing pdt status
Keywords: beta2
Whiteboard: [PDT-]
removing beta1 keyword so it doesn't show up on beta1 radar
Keywords: beta1
This problem actually appears to be that getAttribute('value') and .value don't agree on the same value. Browsing through the code, it is probably because nsHTMLTextAreaElement::SetValue (in layout) does not call SetAttribute and thus setting .value has only a visible effect without changing the underlying property. (Then again, I don't fully understand the code) Attached a new testcase demonstration the difference between getAttribute and .value
Attached file Revised test case (deleted) —
Keywords: nsbeta2
Status: NEW → ASSIGNED
Target Milestone: --- → M16
Fwded to rickg to get his opinion on PR2 stopper here.
Whiteboard: [NEED INFO]
Marking beta2+.
Whiteboard: [NEED INFO] → beta2+
I just checked in a fix for this, marking FIXED.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Whiteboard: beta2+ → [nsbeta2+]
verified fixed.
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: