Skip to content

Commit b6850d1

Browse files
committed
Don't extract all scripts if there is a fragment identifier.
1 parent 74ea56e commit b6850d1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/jsonld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ jsonld.get = async function(url, options) {
926926
remoteDoc
927927
});
928928
}
929-
if(!options.extractAllScripts) {
929+
if(frag || !options.extractAllScripts) {
930930
remoteDoc.document = remoteDoc.document[0];
931931
}
932932
} else {

tests/test-common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ const TEST_TYPES = {
313313
/toRdf-manifest.jsonld#twf06$/,
314314
/toRdf-manifest.jsonld#twf07$/,
315315
// html
316-
// /html-manifest.jsonld#tr010$/, // unescaped content
316+
/html-manifest.jsonld#tr010$/, // unescaped content
317317
// number fixes
318318
/toRdf-manifest.jsonld#trt01$/,
319319
// IRI resolution

0 commit comments

Comments
 (0)