Change some instances of Nokogiri HTML4 parsing to HTML5 (#31812)
This commit is contained in:
parent
b716248fc5
commit
10143d053a
8 changed files with 11 additions and 11 deletions
|
@ -13,7 +13,7 @@ def gen_border(codepoint, color)
|
|||
view_box[3] += 4
|
||||
svg['viewBox'] = view_box.join(' ')
|
||||
end
|
||||
g = Nokogiri::XML::Node.new 'g', doc
|
||||
g = doc.create_element('g')
|
||||
doc.css('svg > *').each do |elem|
|
||||
border_elem = elem.dup
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue