Closed Bug 1027581 Opened 11 years ago Closed 11 years ago

INPUT.innerHTML retrieves last successful innerHTML not undefined

Categories

(Firefox :: Untriaged, defect)

32 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: miscellaneous, Unassigned)

Details

Attachments

(1 file)

509 bytes, text/html
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 (Beta/Release) Build ID: 20140616004003 Steps to reproduce: Asked for innerHTML of an input element (which was in a variable) in testing for existence of property. The following code illustrates:- <div id='divtst'>tst</div> <input id='inptst' value='tstval'> <script language='javascript' type="text/javascript"> var s=document.getElementById('divtst').innerHTML; document.write(document.getElementById('inptst').innerHTML); </script> Actual results: returned a string from prior innerHTML Expected results: expected undefined
Sorry my snippet there doesn't do it reliably, but something similar must. This is what I get from my console:- 11:54:37.392 aDstFn[0].innerHTML 11:54:37.398 "DCN:38855" 11:55:16.387 aDstFn[0].outerHTML 11:55:16.392 "<input id="Scr_SEditTxt:42_O" class="edit" value="1025 - Z - Mark Merrick" onchange="SEditTxtUpd(this,3);">" d
Can I delete this bug - I've just realised I must have set the innerHTML on it inadvertantly, hence the results - doh... d
Attached file testcase
WFM. Can you reproduce the problem with this testcase?
Flags: needinfo?(miscellaneous)
ah.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Flags: needinfo?(miscellaneous)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: