Skip to content

Commit

Permalink
Fix w3c#53: Clean up unsupported events for createEvent interface
Browse files Browse the repository at this point in the history
Some events are not supported by two or above user agents according
to the implementation testing. Here we only add events which are
supported by at least two user agents, and link the event interfaces
to correct targets.
  • Loading branch information
Hongbo Min authored and Yongsheng Zhu committed May 17, 2017
1 parent 5569402 commit 5966cc8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 29 deletions.
10 changes: 10 additions & 0 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ urlPrefix: https://www.w3.org/TR/html51/; spec: HTML51;
text: browsing context; url: browsers.html#browsing-context; type: dfn
text: unit of related similar-origin browsing contexts; url: browsers.html#unit-of-related-similar-origin-browsing-contexts; type: dfn
text: Unicode serialization; url: browsers.html#unicode-serialization; type: dfn
text: HashChangeEvent; url: browsers.html#the-hashchangeevent-interface; type: dfn
url: https://heycam.github.io/webidl/#idl-enums; type: dfn;
text: unenumerable
urlPrefix: https://www.w3.org/TR/WebIDL-1/#; spec: WebIDL-1
Expand All @@ -77,6 +78,15 @@ urlPrefix: https://www.w3.org/TR/WebIDL-1/#; spec: WebIDL-1
text: supported property indices; url: dfn-supported-property-indices; type: dfn
text: supported property names; url: dfn-supported-property-names; type: dfn
text: code units; url: dfn-code-unit; type: dfn
urlPrefix: https://www.w3.org/TR/uievents/
text: CompositionEvent; url: #compositionevent; type: dfn
text: KeyboardEvent; url: #keyboardevent-keyboardevent; type: dfn
text: MouseEvent; url: #mouseevent; type: dfn
text: UIEvent; url: #uievent-uievent; type: dfn
urlPrefix: https://www.w3.org/TR/webmessaging/
text: MessageEvent; url: #messageevent; type: dfn
urlPrefix: https://www.w3.org/TR/webstorage/
text: StorageEvent; url: #storageevent; type: dfn
</pre>

<style>
Expand Down
37 changes: 8 additions & 29 deletions sections/nodes.include
Original file line number Diff line number Diff line change
Expand Up @@ -1974,41 +1974,20 @@ A <a>document</a> is said to be in <dfn export id=concept-document-no-quirks>no-
<thead>
<tr><th>String<th>Interface<td>Notes
<tbody>
<tr><td>"<code>animationevent</code>"<td><code><a>AnimationEvent</a></code><td> [[CSS3-ANIMATIONS]]
<tr><td>"<code>beforeunloadevent</code>"<td><code><a>BeforeUnloadEvent</a></code><td> [[HTML51]]
<tr><td>"<code>closeevent</code>"<td><code><a>CloseEvent</a></code><td>
<tr><td>"<code>compositionevent</code>"<td><code><a>CompositionEvent</a></code><td> [[UIEVENTS]]
<tr><td>"<code>customevent</code>"<td><code><a>CustomEvent</a></code><td>
<!-- textevent also maps to CompositionEvent -->
<tr><td>"<code>devicemotionevent</code>"<td><code><a>DeviceMotionEvent</a></code><td> [[DEVICE-ORIENTATION]]
<tr><td>"<code>deviceorientationevent</code>"<td><code><a>DeviceOrientationEvent</a></code><td> [[DEVICE-ORIENTATION]]
<tr><td>"<code>dragevent</code>"<td><code><a>DragEvent</a></code><td> [[HTML51]]
<tr><td>"<code>errorevent</code>"<td><code><a>ErrorEvent</a></code><td>
<tr><td>"<code>customevent</code>"<td>{{CustomEvent}}<td>
<tr><td>"<code>event</code>"<td><code><a>Event</a></code><td>
<tr><td>"<code>event</code>"<td><code><a>Event</a></code><td>
<tr><td>"<code>events</code>"<td><code><a>Event</a></code><td>
<!-- htmlevents and svgevent also map to Event -->
<tr><td>"<code>focusevent</code>"<td><code><a>FocusEvent</a></code><td> [[UIEVENTS]]
<tr><td>"<code>hashchangeevent</code>"<td><code><a>HashChangeEvent</a></code><td> [[HTML51]]
<tr><td>"<code>htmlevents</code>"<td><code><a>Event</a></code><td>
<tr><td>"<code>idbversionchangeevent</code>"<td><code><a>IDBVersionChangeEvent</a></code><td> [[INDEXDB]]
<tr><td>"<code>keyboardevent</code>"<td><code>KeyboardEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>keyevents</code>"<td><code>KeyboardEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>messageevent</code>"<td><code>MessageEvent</code><td> [[HTML51]]</a>
<tr><td>"<code>mouseevent</code>"<td><code>MouseEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>mouseevents</code>"<td><code>MouseEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>pagetransitionevent</code>"<td><code>PageTransitionEvent</code><td> [[HTML51]]
<tr><td>"<code>popstateevent</code>"<td><code>PopStateEvent</code><td> [[HTML51]]
<tr><td>"<code>storageevent</code>"<td><code>StorageEvent</code><td> [[HTML51]]
<tr><td>"<code>svgzoomevent</code>"<td><code>SVGZoomEvent</code><td> [[SVG]]
<tr><td>"<code>textevent</code>"<td><code>CompositionEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>touchevent</code>"<td><code>TouchEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>trackevent</code>"<td><code>TrackEvent</code><td> [[HTML51]]
<tr><td>"<code>transitionevent</code>"<td><code>TransitionEvent</code><td> [[CSS3-ANIMATIONS]]
<tr><td>"<code>uievent</code>"<td><code>UIEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>uievents</code>"<td><code>UIEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>webglcontextevent</code>"<td><code>WebGLContextEvent</code><td> [[WEBGL]]
<tr><td>"<code>wheelevent</code>"<td><code>WheelEvent</code><td> [[UIEVENTS]]
<tr><td>"<code>keyboardevent</code>"<td><code><a>KeyboardEvent</a></code><td> [[UIEVENTS]]
<tr><td>"<code>messageevent</code>"<td><code><a>MessageEvent</a></code><td> [[WEBMESSAGING]]
<tr><td>"<code>mouseevent</code>"<td><code><a>MouseEvent</a></code><td> [[UIEVENTS]]
<tr><td>"<code>mouseevents</code>"<td><code><a>MouseEvent</a></code><td> [[UIEVENTS]]
<tr><td>"<code>storageevent</code>"<td><code><a>StorageEvent</a></code><td> [[WEBSTORAGE]]
<tr><td>"<code>uievent</code>"<td><code><a>UIEvent</a></code><td> [[UIEVENTS]]
<tr><td>"<code>uievents</code>"<td><code><a>UIEvent</a></code><td> [[UIEVENTS]]
</table></li>

<li><p>If <var>constructor</var> is null, <a>throw</a> a "<code><a>NotSupportedError</a></code>".
Expand Down

0 comments on commit 5966cc8

Please sign in to comment.