Skip to content

Commit

Permalink
Issue #7. Add OrientationChangeEvent.type
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Taylor committed Sep 8, 2015
1 parent 5da4208 commit 9720cce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions compatibility.bs
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ urlPrefix: https://dom.spec.whatwg.org/; spec: WHATWG-DOM
text: Event; url: #event
type: method
text: createEvent; url: #dom-document-createevent
type: attribute
text: type; url: #dom-event-type
</pre>

<!-- Commented out until we know what the heck to put here:
Expand Down Expand Up @@ -393,9 +395,12 @@ TODO: https://github.com/whatwg/compat/issues/7

<pre class="idl">
interface OrientationChangeEvent : Event {

};
</pre>

The {{OrientationChangeEvent}}'s <a attribute>type</a> attribute getter must return the string "<code>orientationchange</code>".

An {{OrientationChangeEvent}} must be able to be created by calling the <code><a method>createEvent</a></code> method of the {{Document}} interface, with the {{Event}} interface as its constructor.

<dl class=domintro>
Expand Down
6 changes: 6 additions & 0 deletions compatibility.html
Original file line number Diff line number Diff line change
Expand Up @@ -503,10 +503,14 @@ <h3 class="heading settled" data-level="4.1" id="events-orientationchange-event"


<pre class="idl">interface <dfn class="idl-code" data-dfn-type="interface" data-export="" id="orientationchangeevent">OrientationChangeEvent<a class="self-link" href="#orientationchangeevent"></a></dfn> : <a data-link-type="idl-name" href="https://dom.spec.whatwg.org/#event">Event</a> {

};
</pre>


<p>The <code class="idl"><a data-link-type="idl" href="#orientationchangeevent">OrientationChangeEvent</a></code>'s <a class="idl-code" data-link-type="attribute" href="https://dom.spec.whatwg.org/#dom-event-type">type</a> attribute getter must return the string "<code>orientationchange</code>".</p>


<p>An <code class="idl"><a data-link-type="idl" href="#orientationchangeevent">OrientationChangeEvent</a></code> must be able to be created by calling the <code><a class="idl-code" data-link-type="method" href="https://dom.spec.whatwg.org/#dom-document-createevent">createEvent</a></code> method of the <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#document">Document</a></code> interface, with the <code class="idl"><a data-link-type="idl" href="https://dom.spec.whatwg.org/#event">Event</a></code> interface as its constructor.</p>


Expand Down Expand Up @@ -704,6 +708,7 @@ <h3 class="no-num heading settled" id="index-defined-elsewhere"><span class="con
<li><a href="https://dom.spec.whatwg.org/#document">Document</a>
<li><a href="https://dom.spec.whatwg.org/#event">Event</a>
<li><a href="https://dom.spec.whatwg.org/#dom-document-createevent">createEvent</a>
<li><a href="https://dom.spec.whatwg.org/#dom-event-type">type</a>
</ul>
<li><a data-link-type="biblio" href="#biblio-geometry-1">[geometry-1]</a> defines the following terms:
<ul>
Expand Down Expand Up @@ -804,6 +809,7 @@ <h2 class="no-num heading settled" id="idl-index"><span class="content">IDL Inde
};

interface <a href="#orientationchangeevent">OrientationChangeEvent</a> : <a data-link-type="idl-name" href="https://dom.spec.whatwg.org/#event">Event</a> {

};

</pre>
Expand Down

0 comments on commit 9720cce

Please sign in to comment.