Closed
Bug 475354
Opened 16 years ago
Closed 16 years ago
value attribute from DOM Attribute collection in an INPUT element does not change
Categories
(Firefox :: General, defect)
Tracking
()
People
(Reporter: wlk125, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/525.19 (KHTML, like Gecko) Chrome/1.0.154.43 Safari/525.19
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5
When you change the value of an input field, the input.value property changes but when you access it from the attributes collection it has the first value. It doesn't change or update.
Reproducible: Always
Steps to Reproduce:
1. create a page with "<input type='text' value='init value' />
2. Load the page and change the value to 'new value'
3. with javascript, check the input.value, it will have 'new value'.
4. with javascript, create a loop that cycles through the input.attributes collection. The input attribute will have 'init value'
Actual Results:
input.value had the actual value of the input and the input attribute in the collection had the initial value.
Expected Results:
they both should have the same value
if it helps, this behavior happens in webkit based browsers (safari, chrome). IE handles it correctly.
Comment 1•16 years ago
|
||
Actually it is IE that is incorrect. This is broadly the same as bug 76194.
Hi, just read the other bug... this seems like a weird and unexpected behavior, but it's the w3c standard so that how it should be. Then there is no way to loop through the actual updated attributes...
Comment 3•16 years ago
|
||
Not a firefox bug then, you can take it up with the w3c though.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•