Closed
Bug 331156
Opened 19 years ago
Closed 11 years ago
Dynamically changing file input to other input type doesn't show the default text inside the input
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: martijn.martijn, Unassigned)
References
Details
(Keywords: helpwanted, regression, testcase)
Attachments
(1 file)
693 bytes,
text/html
|
Details |
See upcoming testcase.
In all the input types I would expect the word 'passed' to appear, but that doesn't happen.
This is a regression, it doesn't happenin 2004-08-09 build, happens in 2004-08-10 build.
So I'm guessing it's a regression from bug 230170, but if it isn't please don't fix it, Boris ;)
Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Not seeing "passed" in:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060319 Firefox/1.5.0.2 ID:2006031904
or:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060320 SeaMonkey/1.5a ID:2006032009
or:
ie Version: 6.0.2900.2180.xpsp_sp2_gdr.050301-1519
![]() |
||
Comment 3•19 years ago
|
||
sicking, what do you think we should be doing here?
yeah, ideally we should pass this testcase as written i'd say.
![]() |
||
Comment 5•19 years ago
|
||
I don't really see how this used to work, given the SetValueInternal call we make in nsHTMLInputElement::ParseAttribute.... This probably is a regression from bug 230170 somehow, presumably because we actually set the value in the content node now, not in the frame that's about to die. Or the other way around. Or something. But the real issue is that we're setting the current value, which really ought to lead to the observed behavior. Sounds like we should really do that splitting up of value storage for file inputs. Sicking, is there a bug on that?
Blocks: 230170
Keywords: helpwanted
![]() |
||
Comment 6•19 years ago
|
||
Note that even with the patch for bug 334977 this problem exists (since that patch still clears the "non-file" value.
sicking, perhaps we should just always set the "non-file" value when SetAttr or SetValue happens?
Depends on: 334977
Flags: blocking1.9a2?
Flags: blocking1.9a2? → blocking1.9-
![]() |
||
Comment 7•11 years ago
|
||
I see the expected behavior and I see the same thing on Chrome 30.
IE11 on the other hand... no 'passed' is displayed!
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
![]() |
||
Comment 8•11 years ago
|
||
Sorry for the bugspam, just correct myself, I meant IE10.
You need to log in
before you can comment on or make changes to this bug.
Description
•