From b805c03b4a70c400dde052dc6461c0bcda2966a5 Mon Sep 17 00:00:00 2001 From: Hongbo Min Date: Tue, 21 Mar 2017 19:41:31 +0800 Subject: [PATCH] Fix #50: Add more legacy event types for createEvent() Lots of event types defined in other relevant specs are missing for createEvent interface, e.g. animationevent, devicemotionevent, svgzoomevent etc. These event definitions can be found in the normative/informative references. --- sections/nodes.include | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/sections/nodes.include b/sections/nodes.include index f01d30616..c9e256ac0 100644 --- a/sections/nodes.include +++ b/sections/nodes.include @@ -1977,18 +1977,41 @@ A document is said to be in no- StringInterfaceNotes + "animationevent"AnimationEvent [[CSS3-ANIMATIONS]] + "beforeunloadevent"BeforeUnloadEvent [[HTML51]] + "closeevent"CloseEvent + "compositionevent"CompositionEvent [[UIEVENTS]] "customevent"CustomEvent + + "devicemotionevent"DeviceMotionEvent [[DEVICE-ORIENTATION]] + "deviceorientationevent"DeviceOrientationEvent [[DEVICE-ORIENTATION]] + "dragevent"DragEvent [[HTML51]] + "errorevent"ErrorEvent + "event"Event "event"Event "events"Event + + "focusevent"FocusEvent [[UIEVENTS]] + "hashchangeevent"HashChangeEvent [[HTML51]] "htmlevents"Event + "idbversionchangeevent"IDBVersionChangeEvent [[INDEXDB]] "keyboardevent"KeyboardEvent [[UIEVENTS]] "keyevents"KeyboardEvent [[UIEVENTS]] - "messageevent"MessageEvent [[HTML5] + "messageevent"MessageEvent [[HTML51]] "mouseevent"MouseEvent [[UIEVENTS]] "mouseevents"MouseEvent [[UIEVENTS]] + "pagetransitionevent"PageTransitionEvent [[HTML51]] + "popstateevent"PopStateEvent [[HTML51]] + "storageevent"StorageEvent [[HTML51]] + "svgzoomevent"SVGZoomEvent [[SVG]] + "textevent"CompositionEvent [[UIEVENTS]] "touchevent"TouchEvent [[UIEVENTS]] + "trackevent"TrackEvent [[HTML51]] + "transitionevent"TransitionEvent [[CSS3-ANIMATIONS]] "uievent"UIEvent [[UIEVENTS]] "uievents"UIEvent [[UIEVENTS]] + "webglcontextevent"WebGLContextEvent [[WEBGL]] + "wheelevent"WheelEvent [[UIEVENTS]]
  • If constructor is null, throw a "NotSupportedError".