|
@@ -11,9 +11,8 @@ module Docs
|
|
|
|
|
|
|
|
def update_attribute(tag, attribute)
|
|
def update_attribute(tag, attribute)
|
|
|
css(tag.to_s).each do |node|
|
|
css(tag.to_s).each do |node|
|
|
|
- next if node[attribute].start_with?('data:image')
|
|
|
|
|
next unless value = node[attribute]
|
|
next unless value = node[attribute]
|
|
|
- next if fragment_url_string?(value)
|
|
|
|
|
|
|
+ next if fragment_url_string?(value) || data_url_string?(value)
|
|
|
node[attribute] = normalize_url(value)
|
|
node[attribute] = normalize_url(value)
|
|
|
end
|
|
end
|
|
|
end
|
|
end
|