@@ -5662,7 +5662,7 @@ <h3>Algorithm</h3>
5662
5662
as long as they generally use the same methods, arguments, and options
5663
5663
and return the same results.</ span > </ p >
5664
5664
5665
- < p class ="note "> Interfaces are marked `[Exposed=JsonLdProcessor ]`,
5665
+ < p class ="note "> Interfaces are marked `[Exposed=Endpoint ]`,
5666
5666
which creates a global interface.
5667
5667
The use of WebIDL in JSON-LD, while appropriate for use within browsers,
5668
5668
is not limited to such use.</ p >
@@ -5687,8 +5687,15 @@ <h3>Algorithm</h3>
5687
5687
in this document mention this directly.</ p >
5688
5688
5689
5689
< pre class ="idl ">
5690
- [Global=JsonLdProcessor, Exposed=JsonLdProcessor]
5690
+ /*
5691
+ * The Endpoint interface is created to expose the JsonLdProcessor interface.
5692
+ */
5693
+ [Global=Endpoint, Exposed=Endpoint]
5694
+ interface Endpoint {};
5695
+
5696
+ [Exposed=Endpoint]
5691
5697
interface JsonLdProcessor {
5698
+ constructor();
5692
5699
static Promise<JsonLdRecord> compact(
5693
5700
JsonLdInput input,
5694
5701
optional JsonLdContext context = null,
@@ -6085,7 +6092,7 @@ <h3>Algorithm</h3>
6085
6092
which has a < a > default graph</ a > accessible via the < a data-link-for ="RdfDataset "> defaultGraph</ a > attribute.</ p >
6086
6093
6087
6094
< pre class ="idl changed ">
6088
- [Exposed=JsonLdProcessor ]
6095
+ [Exposed=Endpoint ]
6089
6096
interface RdfDataset {
6090
6097
constructor();
6091
6098
readonly attribute RdfGraph defaultGraph;
@@ -6129,7 +6136,7 @@ <h3>Algorithm</h3>
6129
6136
which is composed of zero or more < a > RdfTriple</ a > instances.</ p >
6130
6137
6131
6138
< pre class ="idl changed ">
6132
- [Exposed=JsonLdProcessor ]
6139
+ [Exposed=Endpoint ]
6133
6140
interface RdfGraph {
6134
6141
constructor();
6135
6142
void add(RdfTriple triple);
@@ -6158,7 +6165,7 @@ <h3>Algorithm</h3>
6158
6165
< p > The < dfn > RdfTriple</ dfn > interface describes an < a > triple</ a > .</ p >
6159
6166
6160
6167
< pre class ="idl changed ">
6161
- [Exposed=JsonLdProcessor ]
6168
+ [Exposed=Endpoint ]
6162
6169
interface RdfTriple {
6163
6170
constructor();
6164
6171
readonly attribute USVString subject;
@@ -6186,7 +6193,7 @@ <h3>Algorithm</h3>
6186
6193
< p > The < dfn > RdfLiteral</ dfn > interface describes an < a > RDF Literal</ a > .</ p >
6187
6194
6188
6195
< pre class ="idl changed ">
6189
- [Exposed=JsonLdProcessor ]
6196
+ [Exposed=Endpoint ]
6190
6197
interface RdfLiteral {
6191
6198
constructor();
6192
6199
readonly attribute USVString value;
@@ -6440,7 +6447,7 @@ <h3>RemoteDocument</h3>
6440
6447
to return information about a remote document or context.</ p >
6441
6448
6442
6449
< pre class ="idl ">
6443
- [Exposed=JsonLdProcessor ]
6450
+ [Exposed=Endpoint ]
6444
6451
interface RemoteDocument {
6445
6452
constructor();
6446
6453
readonly attribute USVString contentType;
@@ -7082,9 +7089,9 @@ <h2>Changes since Candidate Release of 05 March 2020</h2>
7082
7089
to update < var > cl reference</ var > and not < var > node</ var > .</ li >
7083
7090
< li > Added < a href ="#api-keywords " class ="sectionRef "> </ a > to describe
7084
7091
the `preserve` keyword, which is only used for framing.</ li >
7085
- < li > Removed the `[Exposed=(Window,Worker)]`
7086
- < a data-cite =" WEBIDL#dfn-extended-attribute " > extended attribute </ a >
7087
- from < a href =" #the-application-programming-interface " class =" sectionRef " > </ a > to address review suggestions.</ li >
7092
+ < li > Changed `[Exposed=(Window,Worker)]` to `[Exposed=Endpoint]`,
7093
+ which is declared as a global interface in order to expose the {{JsonLdProcessor}} interface
7094
+ for non-browser usage to address review suggestions.</ li >
7088
7095
</ ul >
7089
7096
</ section >
7090
7097
< section id ="ack "
0 commit comments