Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ <h2>No Duplication</h2>
[Exposed=Window]
interface Duplicated {
attribute DOMString bar;
void doTheFoo();
undefined doTheFoo();
};
dictionary Duplicated {};
</pre>
Expand All @@ -38,30 +38,32 @@ <h2>No Cross Overload, I'm looking at you WebGL</h2>
<pre class="idl">
[Exposed=Window]
interface BaseInterface {
void doTheFoo();
undefined doTheFoo();
};
interface mixin MyMixin {
void doTheFoo(DOMString foo);
undefined doTheFoo(DOMString foo);
};
BaseInterface includes MyMixin;
</pre>
</section>
<section>
<h2>My [Constructor] interface</h2>
<pre class="idl">
[Exposed=Window, Constructor] // cause merge conflict 7
[Exposed=Window] // cause merge conflict 7
interface IHaveConstructor {
constructor();
attribute DOMString bar;
void doTheFoo();
undefined doTheFoo();
};
</pre>
</section>
<section>
<h2>My Implicitly Exposed interface</h2>
<pre class="idl">
[Exposed=Window]
interface ImplicitlyExposed {
attribute DOMString bar;
void doTheFoo();
undefined doTheFoo();
};
</pre>
</section>
Expand All @@ -71,8 +73,9 @@ <h2>My interface with optional dictionary argument</h2>
dictionary MyDictionary {
DOMString myField;
};
[Exposed=Window]
interface IUseTheDictionary {
void doTheFoo(MyDictionary dict);
undefined doTheFoo(optional MyDictionary dict = {});
};
</pre>
</section>
Expand All @@ -82,7 +85,7 @@ <h2>My interface with incorrect nullable union</h2>
typedef (MyDictionary or DOMString) MyUnion;
[Exposed=Window]
interface IAlsoUseTheDictionary {
void doTheFoo(optional MyUnion? dict);
undefined doTheFoo(optional MyUnion? dict);
};
</pre>
</section>
Expand Down