@@ -5662,9 +5662,8 @@ <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 not marked with the `[Exposed]`
5666
- < a data-cite ="WEBIDL#dfn-extended-attribute "> extended attribute</ a > ,
5667
- as this is currently quite browser specific.
5665
+ < p class ="note "> Interfaces are marked `[Exposed=JsonLdProcessor]`,
5666
+ which creates a global interface.
5668
5667
The use of WebIDL in JSON-LD, while appropriate for use within browsers,
5669
5668
is not limited to such use.</ p >
5670
5669
@@ -5688,8 +5687,8 @@ <h3>Algorithm</h3>
5688
5687
in this document mention this directly.</ p >
5689
5688
5690
5689
< pre class ="idl ">
5690
+ [Global=JsonLdProcessor, Exposed=JsonLdProcessor]
5691
5691
interface JsonLdProcessor {
5692
- constructor();
5693
5692
static Promise<JsonLdRecord> compact(
5694
5693
JsonLdInput input,
5695
5694
optional JsonLdContext context = null,
@@ -6086,6 +6085,7 @@ <h3>Algorithm</h3>
6086
6085
which has a < a > default graph</ a > accessible via the < a data-link-for ="RdfDataset "> defaultGraph</ a > attribute.</ p >
6087
6086
6088
6087
< pre class ="idl changed ">
6088
+ [Exposed=JsonLdProcessor]
6089
6089
interface RdfDataset {
6090
6090
constructor();
6091
6091
readonly attribute RdfGraph defaultGraph;
@@ -6129,6 +6129,7 @@ <h3>Algorithm</h3>
6129
6129
which is composed of zero or more < a > RdfTriple</ a > instances.</ p >
6130
6130
6131
6131
< pre class ="idl changed ">
6132
+ [Exposed=JsonLdProcessor]
6132
6133
interface RdfGraph {
6133
6134
constructor();
6134
6135
void add(RdfTriple triple);
@@ -6157,6 +6158,7 @@ <h3>Algorithm</h3>
6157
6158
< p > The < dfn > RdfTriple</ dfn > interface describes an < a > triple</ a > .</ p >
6158
6159
6159
6160
< pre class ="idl changed ">
6161
+ [Exposed=JsonLdProcessor]
6160
6162
interface RdfTriple {
6161
6163
constructor();
6162
6164
readonly attribute USVString subject;
@@ -6184,6 +6186,7 @@ <h3>Algorithm</h3>
6184
6186
< p > The < dfn > RdfLiteral</ dfn > interface describes an < a > RDF Literal</ a > .</ p >
6185
6187
6186
6188
< pre class ="idl changed ">
6189
+ [Exposed=JsonLdProcessor]
6187
6190
interface RdfLiteral {
6188
6191
constructor();
6189
6192
readonly attribute USVString value;
@@ -6437,6 +6440,7 @@ <h3>RemoteDocument</h3>
6437
6440
to return information about a remote document or context.</ p >
6438
6441
6439
6442
< pre class ="idl ">
6443
+ [Exposed=JsonLdProcessor]
6440
6444
interface RemoteDocument {
6441
6445
constructor();
6442
6446
readonly attribute USVString contentType;
0 commit comments