Sync with Latest HTML5lib
Some more tweaks
This commit is contained in:
parent
fd183eac04
commit
8846b2cda5
5 changed files with 48 additions and 27 deletions
2
vendor/plugins/HTML5lib/tests/preamble.rb
vendored
2
vendor/plugins/HTML5lib/tests/preamble.rb
vendored
|
@ -15,7 +15,7 @@ begin
|
|||
rescue LoadError
|
||||
class JSON
|
||||
def self.parse json
|
||||
json.gsub! /"\s*:/, '"=>'
|
||||
json.gsub!(/"\s*:/, '"=>')
|
||||
json.gsub!(/\\u[0-9a-fA-F]{4}/) {|x| [x[2..-1].to_i(16)].pack('U')}
|
||||
eval json
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue