Closed Bug 300711 Opened 20 years ago Closed 20 years ago

error in alerting input tag

Categories

(Firefox :: General, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 236791

People

(Reporter: arlis.kurniawan, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.9) Gecko/20050711 Firefox/1.0.5 We have page with tag like following. <input id="inp" type=text onclick='alert("This script error?.");'; > It should not raise error in javascript console like this. Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: <unknown filename> :: onclick :: line 0" data: no] Netscape/7.2 (ax) and IE 6.0 do correctly. Reproducible: Always Steps to Reproduce: 1.just click the input text -> <input id="inp" type=text onclick='alert("This script error?.");'; > Actual Results: raise error in java console as Error: [Exception... "'Permission denied to get property XULElement.selectedIndex' when calling method: [nsIAutoCompletePopup::selectedIndex]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "JS frame :: <unknown filename> :: onclick :: line 0" data: no] Expected Results: no error occured
*** This bug has been marked as a duplicate of 236791 ***
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.