Ruby 1.9 Compatibility

Completely removed the html5lib sanitizer.
Fixed the string-handling to work in both
Ruby 1.8.x and 1.9.2. There are still,
inexplicably, two functional tests that
fail. But the rest seems to work quite well.
This commit is contained in:
Jacques Distler 2009-11-30 16:28:18 -06:00
parent 79c8572053
commit a6429f8c22
142 changed files with 519 additions and 843 deletions

38
attic/vendor/plugins/HTML5lib/test19.rb vendored Normal file
View file

@ -0,0 +1,38 @@
#
# This temporary test driver tracks progress on getting HTML5lib working
# on Ruby 1.9. Prereqs of Hoe, Hpricot, and UniversalDetector will be
# required to complete this.
#
# Once all the tests pass, this file should be deleted
#
require 'test/test_cli'
# requires UniversalDetector
# require 'test/test_encoding'
require 'test/test_input_stream'
require 'test/test_lxp'
require 'test/test_parser'
# warning: method redefined; discarding old test
# warning: instance variable @expanded_name not initialized
# SimpleDelegator.class
# require 'test/test_sanitizer'
require 'test/test_serializer'
require 'test/test_sniffer'
require 'test/test_stream'
# warning: shadowing outer local variable - tokens
# require 'test/test_tokenizer'
# requires hpricot
# require 'test/test_treewalkers'
# warning: instance variable @delegate_sd_obj not initialized
# require 'test/test_validator'