Closed
Bug 307105
Opened 19 years ago
Closed 15 years ago
EventTarget.prototype doesn't exist
Categories
(Core :: DOM: Events, defect)
Core
DOM: Events
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: stryker330, Unassigned)
Details
Attachments
(1 file)
|
616 bytes,
text/html
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+ Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b3) Gecko/20050712 Firefox/1.0+ In JS, EventTarget.prototype is undefined. It should be defined and contain addEventListener and company, e.g. EventTarget.prototype.addEventListener. Oddly enough, EventTarget itself is defined, but contains no visible properties. Workaround is to access/set addEventListener and company on Element.prototype, Window.prototype, and HTMLDocument.prototype. Reproducible: Always Steps to Reproduce:
| Reporter | ||
Comment 1•19 years ago
|
||
Comment 2•19 years ago
|
||
Sounds like EventTarget should be in some prototype chains here...
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Updated•15 years ago
|
Assignee: events → nobody
QA Contact: ian → events
Comment 3•15 years ago
|
||
This WFM. No idea when this got fixed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•