Closed Bug 273979 Opened 20 years ago Closed 20 years ago

setAttribute("value", foo) doesn't work with <input> if you modify the text inside the label

Categories

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

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: fabiobonelli, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Galeon/1.3.18 (Debian package 1.3.18-1.1)
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041007 Galeon/1.3.18 (Debian package 1.3.18-1.1)

It seems that in certain conditions setAttribute() doesn't work.

Works in Opera.

Reproducible: Always
Steps to Reproduce:
1. Load testcase.html
2. Click on "Change" button. The text in the field changes everytime
   you click on it, as expected.
3. Now write something in the text field.
4. Click on "Change" button again: the text in the field doesn't change
   anymore.
Attached file Testcase
This has probably something to do with the difference between the attribute
"value" and the DOM property "value".
This could very well be an invalid bug.
INVALID: http://whatwg.org/specs/web-forms/current-work/#the-defaultvalue
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Component: DOM: HTML → DOM: Core & HTML
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: