Skip to content

Commit c5493c1

Browse files
committed
In load_html, load scripts from all matched types, not just the first.
1 parent ea02d42 commit c5493c1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/json/ld/api.rb

-1
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,6 @@ def self.load_html(input, url:,
846846
res = []
847847

848848
SCRIPT_LOADERS.each do |type, loader|
849-
next unless res.empty? # Only load a single type
850849
elements = if profile
851850
es = input.xpath("//script[starts-with(@type, '#{type};profile=#{profile}')]")
852851
# If no profile script, just take a single script without profile

0 commit comments

Comments
 (0)