Closed
Bug 30533
Opened 25 years ago
Closed 25 years ago
Event properties view, detail, bubbles and cancelable not implemented
Categories
(Core :: DOM: Events, defect, P3)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martin, Assigned: joki)
Details
(Keywords: testcase)
Attachments
(1 file)
(deleted),
text/html
|
Details |
When attempting to retrieve the event properties view, detail, bubbles and cancelable the following message is generated: JavaScript Error: uncaught exception: [Exception... "Method not implemented" code: "-2147467263" nsresult: "0x80004001 (NS_ERROR_NOT_IMPLEMENTED)" Uncomment any one of the commented out lines to generate the error: <script language="JavaScript"><!-- function event_handler(event) { o = ''; for (var i in event) // o += i + ':' + event[i] + '\n'; alert(o); o = 'charCode:' + event.charCode + '\n' + 'keyCode:' + event.keyCode + '\n' + 'altKey:' + event.altKey + '\n' + 'ctrlKey:' + event.ctrlKey + '\n' + 'shiftKey:' + event.shiftKey + '\n' + 'metaKey:' + event.metaKey + '\n' + 'screenX:' + event.screenX + '\n' + 'screenY:' + event.screenY + '\n' + 'clientX:' + event.clientX + '\n' + 'clientY:' + event.clientY + '\n' + 'button:' + event.button + '\n' + 'clickCount:' + event.clickCount + '\n' + 'relatedNode:' + event.relatedNode + '\n' + // 'view:' + event.view + '\n' + // 'detail:' + event.detail + '\n' + 'layerX:' + event.layerX + '\n' + 'layerY:' + event.layerY + '\n' + 'pageX:' + event.pageX + '\n' + 'pageY:' + event.pageY + '\n' + 'which:' + event.which + '\n' + 'rangeParent:' + event.rangeParent + '\n' + 'rangeOffset:' + event.rangeOffset + '\n' + 'cancelBubble:' + event.cancelBubble + '\n' + 'isChar:' + event.isChar + '\n' + 'type:' + event.type + '\n' + 'target:' + event.target + '\n' + 'currentNode:' + event.currentNode + '\n' + 'eventPhase:' + event.eventPhase + '\n' + // 'bubbles:' + event.bubbles + '\n' + // 'cancelable:' + event.cancelable + '\n' + ''; alert(o); } //--></script> <a href="#" onClick="event_handler(event)">text</a>
Comment 1•25 years ago
|
||
martin@irt.org - are you still seeing this problem on recent builds of Mozilla? Gerv
Comment 2•25 years ago
|
||
Confirmed on 20000418 (M15) W95. Testcase attached (distilled from comment). As a side note, shutting down Moz after my experiments produced a crash, which probably isn't good. I only note it here because it's not reproducible. MOZILLA caused an invalid page fault in module JS3250.DLL at 015f:60b841a7. Registers: EAX=024810d0 CS=015f EIP=60b841a7 EFLGS=00010202 EBX=00000080 SS=0167 ESP=0068f8ec EBP=0068f914 ECX=00000036 DS=0167 ESI=0249e180 FS=302f EDX=0072dc44 ES=0167 EDI=0253a1e8 GS=0000 Bytes at CS:EIP: 8b 00 85 c0 74 1c a8 01 75 18 8b c8 83 e1 07 80 Stack dump: 60b8461c 0249e180 00000012 006c2984 00000000 006c2984 007b1da0 00000012 00000036 00000000 0068f95c 60b83b1b 0087d6b0 60b841a0 006c2984 006c2984 Gerv
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
Summary: Accessing event properties generates exceptions → Event properties view, detail, bubbles and cancelable not implemented
Comment 3•25 years ago
|
||
Comment 4•25 years ago
|
||
Vidur, bubbles and cancelable seem important. What about view and detail? Please indicate what should be nsbeta2.
Assignee | ||
Comment 7•25 years ago
|
||
I fixed all of these for M16 a few weeks back
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Updated•24 years ago
|
Component: DOM Level 2 → DOM Events
You need to log in
before you can comment on or make changes to this bug.
Description
•