Skip to content

Commit 337d0be

Browse files
committed
Fix latest WebIDL issues.
1 parent f2b62f6 commit 337d0be

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

index.html

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5214,7 +5214,7 @@ <h2>The Application Programming Interface</h2>
52145214
JSON-LD data into a variety of output formats that are often easier to
52155215
work with.</p>
52165216

5217-
<p>The JSON-LD API uses <a>Promises</a> to represent
5217+
<p>The JSON-LD API uses <a data-cite="ECMASCRIPT#sec-promise-objects">Promises</a> to represent
52185218
the result of the various asynchronous operations.
52195219
<a data-cite="ECMASCRIPT#sec-promise-objects">Promises</a> are defined in [[ECMASCRIPT]].
52205220
General use within specifications can be found in [[promises-guide]].</p>
@@ -5241,24 +5241,25 @@ <h3>The <dfn>JsonLdProcessor</dfn> Interface</h3>
52415241
in this document mention this directly.</p>
52425242

52435243
<pre class="idl">
5244+
[Exposed=Window]
52445245
interface JsonLdProcessor {
52455246
static Promise&lt;JsonLdDictionary> compact(
52465247
JsonLdInput input,
5247-
JsonLdContext context,
5248-
optional JsonLdOptions? options);
5248+
optional JsonLdContext context = {},
5249+
optional JsonLdOptions options = {});
52495250
static Promise&lt;sequence&lt;JsonLdDictionary>> expand(
52505251
JsonLdInput input,
5251-
optional JsonLdOptions? options);
5252+
optional JsonLdOptions options = {});
52525253
static Promise&lt;JsonLdDictionary> flatten(
52535254
JsonLdInput input,
5254-
optional JsonLdContext? context,
5255-
optional JsonLdOptions? options);
5255+
optional JsonLdContext context = {},
5256+
optional JsonLdOptions options = {});
52565257
static Promise&lt;sequence&lt;JsonLdDictionary>> fromRdf(
52575258
RdfDataset input,
5258-
optional JsonLdOptions? options);
5259+
optional JsonLdOptions options = {});
52595260
static Promise&lt;RdfDataset> toRdf(
52605261
JsonLdInput input,
5261-
optional JsonLdOptions? options);
5262+
optional JsonLdOptions options = {});
52625263
};
52635264
</pre>
52645265

@@ -5533,7 +5534,7 @@ <h3>RDF Dataset Interfaces</h3>
55335534
which has a <a>default graph</a> accessible via the <a data-link-for="RdfDataset">defaultGraph</a> attribute.</p>
55345535

55355536
<pre class="idl changed" data-transform="unComment">
5536-
[Constructor]
5537+
[Constructor, Exposed=Window]
55375538
interface RdfDataset {
55385539
readonly attribute RdfGraph defaultGraph;
55395540
void add(USVString graphName, RdfGraph graph);
@@ -5575,7 +5576,7 @@ <h3>RDF Dataset Interfaces</h3>
55755576
which is composed of zero or more <a>RdfTriple</a> instances.</p>
55765577

55775578
<pre class="idl changed" data-transform="unComment">
5578-
[Constructor]
5579+
[Constructor, Exposed=Window]
55795580
interface RdfGraph {
55805581
void add(RdfTriple triple);
55815582
iterable&lt;RdfTriple>;
@@ -5603,7 +5604,7 @@ <h3>RDF Dataset Interfaces</h3>
56035604
<p>The <dfn>RdfTriple</dfn> interface describes an <a>triple</a>.</p>
56045605

56055606
<pre class="idl changed" data-transform="unComment">
5606-
[Constructor]
5607+
[Constructor, Exposed=Window]
56075608
interface RdfTriple {
56085609
readonly attribute USVString subject;
56095610
readonly attribute USVString predicate;
@@ -5630,7 +5631,7 @@ <h3>RDF Dataset Interfaces</h3>
56305631
<p>The <dfn>RdfLiteral</dfn> interface describes an <a>RDF Literal</a>.</p>
56315632

56325633
<pre class="idl changed" data-transform="unComment">
5633-
[Constructor]
5634+
[Constructor, Exposed=Window]
56345635
interface RdfLiteral {
56355636
readonly attribute USVString value;
56365637
readonly attribute USVString datatype;

0 commit comments

Comments
 (0)