Skip to content

Commit

Permalink
In load_html, load scripts from all matched types, not just the first.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Jul 7, 2024
1 parent ea02d42 commit c5493c1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/json/ld/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,6 @@ def self.load_html(input, url:,
res = []

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

0 comments on commit c5493c1

Please sign in to comment.