Open Bug 425759 Opened 18 years ago Updated 3 years ago

setting input type="button" value causes odd text entry field to appear.

Categories

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

1.8 Branch
defect

Tracking

()

People

(Reporter: whalliburton, Unassigned)

Details

(Keywords: testcase, Whiteboard: WONTFIX?)

Attachments

(1 file, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13 Trying to change the text in a <input type="button"> via script. Setting the "value" attribute causes the text to change but also for a "text" entry field to appear right after the text. IE6, IE7, Opera and Safari work properly. Reproducible: Always Steps to Reproduce: 1.button.setAttribute("value","new text"); 2. 3. Actual Results: assuming button is set to the input element, the button is redrawn with the new text but also with a text entry field right next to new text. Expected Results: Just changed the text.
Attached file Testcase (obsolete) —
The attached testcase works for me, Firefox 2.0.0.13 on Linux. Does it demonstrate the problem you're reporting? If not, please attach a testcase that does. Does the problem occur also in Firefox Safe Mode? (it temporarily disables add-ons and themes, this test will help us narrow down the cause of the problem) -- See http://kb.mozillazine.org/Safe_Mode
Attached file shows the problem
The original bug was not really caused by setting the value, but actually be setting the innerHTML to "".
Sorry for confusion.
That looks like a bug, but I'm not sure if it's something we should try to fix on the 1.8 branch. In Firefox 3.0pre nothing happens with the button, which I think is the correct behaviour.
Severity: normal → minor
Status: UNCONFIRMED → NEW
Component: General → DOM: HTML
Ever confirmed: true
Keywords: testcase
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → general
Hardware: PC → All
Whiteboard: WONTFIX?
Version: unspecified → 1.8 Branch
Attachment #312484 - Attachment is obsolete: true
Component: DOM: HTML → DOM: Core & HTML
https://bugzilla.mozilla.org/show_bug.cgi?id=1472046 Move all DOM bugs that haven't been updated in more than 3 years and has no one currently assigned to P5. If you have questions, please contact :mdaly.
Priority: -- → P5
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: