File tree Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Expand file tree Collapse file tree 2 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ < html >
2
+ < head >
3
+ < script type ="application/ld+yaml ">
4
+ "@context" : https://json-ld.org/contexts/person.jsonld
5
+ "@id" : https://dbpedia.org/resource/John_Lennon
6
+ name: John Lennon
7
+ born: 1940 - 10 - 09
8
+ spouse:
9
+ - https ://dbpedia.org/resource/Yoko_Ono
10
+ - https ://dbpedia.org/resource/Cynthia_Lennon
11
+ -- -
12
+ "@context" : https://json-ld.org/contexts/person.jsonld
13
+ "@id" : https://dbpedia.org/resource/Yoko_Ono
14
+ born: 1933 - 02 - 18
15
+ </ script >
16
+ </ head >
17
+ < body >
18
+ < h1 > Hi!</ h1 >
19
+
20
+ < script type ="application/ld+json ">
21
+ {
22
+ "@context" : "https://json-ld.org/contexts/person.jsonld" ,
23
+ "@id" : "https://dbpedia.org/resource/Cynthia_Lennon" ,
24
+ "born" : "1939-09-10"
25
+ }
26
+ </ script >
27
+ </ body >
28
+ </ html >
Original file line number Diff line number Diff line change 198
198
"input" : "cases/html/stream.html" ,
199
199
"expect" : "cases/html/stream.yamlld"
200
200
} ,
201
+ {
202
+ "@id" : "#mixed-script-types" ,
203
+ "@type" : [ "jld:PositiveEvaluationTest" , "jld:ExpandTest" ] ,
204
+ "name" : "YAML Stream with multiple documents embedded into HTML, having JSON-LD and YAML-LD documents in them." ,
205
+ "req" : "must" ,
206
+ "option" : { "extractAllScripts" : true } ,
207
+ "input" : "cases/html/mixed-types.html" ,
208
+ "expect" : "cases/html/stream.yamlld"
209
+ } ,
201
210
{
202
211
"@id" : "#html-dedent-needed" ,
203
212
"@type" : [ "jld:PositiveEvaluationTest" , "jld:ExpandTest" ] ,
You can’t perform that action at this time.
0 commit comments