Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (12 sloc) 0.459 kb
require 'test/unit'
require 'planet/sift'
class SiftTestCase < Test::Unit::TestCase
ATOMNS = 'xmlns="http://www.w3.org/2005/Atom"'
def test_empty_formatting_elements
# http://github.com/bronson/mars/commit/775bc2a397c7812ae67b9979f288c3c835aab059
title = "<title type='html' #{ATOMNS}>&lt;i/&gt;</title>"
doc = Planet::XmlParser.parse(title)
Planet.sift doc, nil
assert_equal '<i></i>', doc.elements['title/div'].to_a.join
end
end
Jump to Line
Something went wrong with that request. Please try again.