-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
90 lines (90 loc) · 2.32 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<title>My Test Specification</title>
<script type="text/javascript" src='https://www.w3.org/Tools/respec/respec-w3c-common' class='remove' async></script>
<script class='remove'>
var respecConfig = {
specStatus: "ED",
editors: [{
name: "Your Name",
url: "https://your-site.com",
}],
github: "https://github.com/w3c/some-API/",
};
</script>
</head>
<body>
<section id='abstract'>
<p>
We'll see some wrong IDL here and their validation results and then the autofix feature. Mergeable Change 7
</p>
</section>
<section id='sotd'></section>
<section>
<h2>No Duplication</h2>
<pre class="idl">
[Exposed=Window]
interface Duplicated {
attribute DOMString bar;
void doTheFoo();
};
dictionary Duplicated {};
</pre>
</section>
<section>
<h2>No Cross Overload, I'm looking at you WebGL</h2>
<pre class="idl">
[Exposed=Window]
interface BaseInterface {
void doTheFoo();
};
interface mixin MyMixin {
void doTheFoo(DOMString foo);
};
BaseInterface includes MyMixin;
</pre>
</section>
<section>
<h2>My [Constructor] interface</h2>
<pre class="idl">
[Exposed=Window, Constructor] // cause merge conflict 7
interface IHaveConstructor {
attribute DOMString bar;
void doTheFoo();
};
</pre>
</section>
<section>
<h2>My Implicitly Exposed interface</h2>
<pre class="idl">
interface ImplicitlyExposed {
attribute DOMString bar;
void doTheFoo();
};
</pre>
</section>
<section>
<h2>My interface with optional dictionary argument</h2>
<pre class="idl">
dictionary MyDictionary {
DOMString myField;
};
interface IUseTheDictionary {
void doTheFoo(MyDictionary dict);
};
</pre>
</section>
<section>
<h2>My interface with incorrect nullable union</h2>
<pre class="idl">
typedef (MyDictionary or DOMString) MyUnion;
[Exposed=Window]
interface IAlsoUseTheDictionary {
void doTheFoo(optional MyUnion? dict);
};
</pre>
</section>
</body>
</html>