Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

the test for embedded body tags is descriptive of libxml2.6.x, not pr…

…escriptive. removing. (nod to jmhodges)
  • Loading branch information...
commit b8093f78dae600d693e3d8ba6f82d0096fbc6613 1 parent 5003761
@flavorjones flavorjones authored
Showing with 6 additions and 5 deletions.
  1. +6 −5 test/test_basic.rb
11 test/test_basic.rb
@@ -1,5 +1,11 @@
require File.expand_path(File.join(File.dirname(__FILE__), 'helper'))
+if defined? Nokogiri::VERSION_INFO
+ puts "=> running with Nokogiri #{Nokogiri::VERSION_INFO.inspect}"
+ puts "=> running with Nokogiri #{Nokogiri::VERSION} / libxml #{Nokogiri::LIBXML_PARSER_VERSION}"
class TestBasic < Test::Unit::TestCase
def test_nil
@@ -67,11 +73,6 @@ def test_fragment_with_text_nodes_leading_and_trailing
assert_equal "text<p>fragment</p>text", Dryopteris.sanitize("text<p>fragment</p>text")
- def test_fragment_with_body_tags
- # ignore second open body tag, use first close body tag, ignore everything after that
- assert_equal "textfragment", Dryopteris.sanitize("text<body>fragment</body>text")
- end
def test_whitewash_on_microsofty_markup
html = <<-EOHTML
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 11"><meta name="Originator" content="Microsoft Word 11"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CNICOLE%7E1%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml"><!--[if gte mso 9]><xml>
Please sign in to comment.
Something went wrong with that request. Please try again.