Skip to content

Commit 597c378

Browse files
committed
Make JsonLdProcessor a global. This silences ReSpec, and is probably better than just removing [Exposed] altogether.
1 parent e4e8dc5 commit 597c378

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5662,9 +5662,8 @@ <h3>Algorithm</h3>
56625662
as long as they generally use the same methods, arguments, and options
56635663
and return the same results.</span></p>
56645664

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.
56685667
The use of WebIDL in JSON-LD, while appropriate for use within browsers,
56695668
is not limited to such use.</p>
56705669

@@ -5688,8 +5687,8 @@ <h3>Algorithm</h3>
56885687
in this document mention this directly.</p>
56895688

56905689
<pre class="idl">
5690+
[Global=JsonLdProcessor, Exposed=JsonLdProcessor]
56915691
interface JsonLdProcessor {
5692-
constructor();
56935692
static Promise&lt;JsonLdRecord> compact(
56945693
JsonLdInput input,
56955694
optional JsonLdContext context = null,
@@ -6086,6 +6085,7 @@ <h3>Algorithm</h3>
60866085
which has a <a>default graph</a> accessible via the <a data-link-for="RdfDataset">defaultGraph</a> attribute.</p>
60876086

60886087
<pre class="idl changed">
6088+
[Exposed=JsonLdProcessor]
60896089
interface RdfDataset {
60906090
constructor();
60916091
readonly attribute RdfGraph defaultGraph;
@@ -6129,6 +6129,7 @@ <h3>Algorithm</h3>
61296129
which is composed of zero or more <a>RdfTriple</a> instances.</p>
61306130

61316131
<pre class="idl changed">
6132+
[Exposed=JsonLdProcessor]
61326133
interface RdfGraph {
61336134
constructor();
61346135
void add(RdfTriple triple);
@@ -6157,6 +6158,7 @@ <h3>Algorithm</h3>
61576158
<p>The <dfn>RdfTriple</dfn> interface describes an <a>triple</a>.</p>
61586159

61596160
<pre class="idl changed">
6161+
[Exposed=JsonLdProcessor]
61606162
interface RdfTriple {
61616163
constructor();
61626164
readonly attribute USVString subject;
@@ -6184,6 +6186,7 @@ <h3>Algorithm</h3>
61846186
<p>The <dfn>RdfLiteral</dfn> interface describes an <a>RDF Literal</a>.</p>
61856187

61866188
<pre class="idl changed">
6189+
[Exposed=JsonLdProcessor]
61876190
interface RdfLiteral {
61886191
constructor();
61896192
readonly attribute USVString value;
@@ -6437,6 +6440,7 @@ <h3>RemoteDocument</h3>
64376440
to return information about a remote document or context.</p>
64386441

64396442
<pre class="idl">
6443+
[Exposed=JsonLdProcessor]
64406444
interface RemoteDocument {
64416445
constructor();
64426446
readonly attribute USVString contentType;

0 commit comments

Comments
 (0)