Closed
Bug 254174
Opened 21 years ago
Closed 19 years ago
textarea innerText returns undefined in javascript
Categories
(Firefox :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 264412
People
(Reporter: anita.kessler, Assigned: bugzilla)
References
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040707 Firefox/0.9.2
<form>
<textarea>123</textarea>
<input type=button onClick="alert(document.forms[0].elements[0].innerText)">
</form>
This example returns undefined instead of '123'.
Workaround: Usage of document.forms[0].elements[0].value instead of .innerText
works well.
Reproducible: Always
Steps to Reproduce:
1. Use FireFox 0.9.2
2. Use example at "Details"
Is .innerText not supported at all with a textarea?
Comment 1•21 years ago
|
||
.innerText is an IE only dom property. You should be able to use the w3c dom
property .textContent instead.
Updated•20 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Updated•19 years ago
|
Alias: innertext
Status: RESOLVED → VERIFIED
Comment 2•19 years ago
|
||
*** Bug 262946 has been marked as a duplicate of this bug. ***
Comment 3•19 years ago
|
||
*** Bug 287395 has been marked as a duplicate of this bug. ***
Comment 4•19 years ago
|
||
*** Bug 317330 has been marked as a duplicate of this bug. ***
Comment 5•19 years ago
|
||
*** Bug 339017 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Alias: innertext
Status: VERIFIED → UNCONFIRMED
Resolution: INVALID → ---
Comment 6•19 years ago
|
||
*** This bug has been marked as a duplicate of 264412 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago → 19 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•