Closed
Bug 236131
Opened 20 years ago
Closed 20 years ago
Using += to assign innerHTML to a textarea has text selecting problems
Categories
(Core :: Layout: Form Controls, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 215228
People
(Reporter: TailsTheKitsune, Unassigned)
Details
Attachments
(1 file)
749 bytes,
text/html
|
Details |
User-Agent: Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7a) Gecko/20040219 See attachment for an example page. Reproducible: Always Steps to Reproduce: 1.Create a form that contains a textarea and an input button 2.Make a javascript function containing a for loop that will modify the innerHTML of the textarea with strings using += 3. Click the button. Actual Results: The first insert worked, but all following inserts (+=) can't be selected. Also, any text that won't fit in the row will be cut off and won't be displayed. And the input button will move to the left after being clicked. Expected Results: The text should be pasted properly and able to be highlighted. The input button should not move. This is a bug with the innerHTML of a textarea. It doesn't seem to have a problem if you address the value of the textarea instead of the innerHTML
The part of the input button moving only happens if you add a \n into the appended string (newline problems in textarea already addressed but don't cover this. May be related to Bug 162268).
Dupe of bug 215228 except it doesn't seem to cover that if you don't put in a '\n' it will enlarge the TEXTAREA. Moving to Layout Form Controls like bug 215228
Assignee: general → nobody
Component: DOM: Views and Formatting → Layout: Form Controls
OS: Windows XP → All
QA Contact: ian → core.layout.form-controls
Comment 4•20 years ago
|
||
*** This bug has been marked as a duplicate of 215228 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•