Skip to content

Commit 0b6ed3d

Browse files
committed
Set default for expandAllScripts to true for flatten and toRdf.
1 parent 9c71c6b commit 0b6ed3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/jsonld.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,7 @@ jsonld.flatten = async function(input, ctx, options) {
387387
// set default options
388388
options = _setDefaults(options, {
389389
base: _isString(input) ? input : '',
390+
extractAllScripts: true,
390391
contextResolver: new ContextResolver(
391392
{sharedCache: _resolvedContextCache})
392393
});
@@ -656,6 +657,7 @@ jsonld.toRDF = async function(input, options) {
656657
// set default options
657658
options = _setDefaults(options, {
658659
base: _isString(input) ? input : '',
660+
extractAllScripts: true,
659661
skipExpansion: false,
660662
contextResolver: new ContextResolver(
661663
{sharedCache: _resolvedContextCache})

tests/test-common.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,6 @@ const TEST_TYPES = {
159159
specVersion: ['json-ld-1.0'],
160160
// FIXME
161161
idRegex: [
162-
// html
163-
/html-manifest.jsonld#tf004$/,
164162
// included
165163
/flatten-manifest.jsonld#tin01$/,
166164
/flatten-manifest.jsonld#tin02$/,
@@ -315,7 +313,7 @@ const TEST_TYPES = {
315313
/toRdf-manifest.jsonld#twf06$/,
316314
/toRdf-manifest.jsonld#twf07$/,
317315
// html
318-
/html-manifest.jsonld#tr010$/,
316+
// /html-manifest.jsonld#tr010$/, // unescaped content
319317
// number fixes
320318
/toRdf-manifest.jsonld#trt01$/,
321319
// IRI resolution

0 commit comments

Comments
 (0)