Closed Bug 307105 Opened 20 years ago Closed 16 years ago

EventTarget.prototype doesn't exist

Categories

(Core :: DOM: Events, defect)

defect
Not set
minor

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: stryker330, Unassigned)

Details

Attachments

(1 file)

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:
Attached file testcase
Sounds like EventTarget should be in some prototype chains here...
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows XP → All
Hardware: PC → All
Assignee: events → nobody
QA Contact: ian → events
This WFM. No idea when this got fixed.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: