Skip to content

Commit 24a7699

Browse files
committed
Don't extract all scripts if there is a fragment identifier.
1 parent ba23ec9 commit 24a7699

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
@@ -307,7 +307,7 @@ const TEST_TYPES = {
307307
/toRdf-manifest.jsonld#twf06$/,
308308
/toRdf-manifest.jsonld#twf07$/,
309309
// html
310-
// /html-manifest.jsonld#tr010$/, // unescaped content
310+
/html-manifest.jsonld#tr010$/, // unescaped content
311311
// number fixes
312312
/toRdf-manifest.jsonld#trt01$/,
313313
// IRI resolution

0 commit comments

Comments
 (0)