未验证 提交 5254dace 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #33366 from ahorek/fix_selector

fix test_should_impose_childless_html_tags_in_html failure with JRuby
......@@ -401,7 +401,13 @@ def test_should_impose_childless_html_tags_in_html
process :test_xml_output, params: { response_as: "text/html" }
# <area> auto-closes, so the <p> becomes a sibling
assert_select "root > area + p"
if defined?(JRUBY_VERSION)
# https://github.com/sparklemotion/nokogiri/issues/1653
# HTML parser "fixes" "broken" markup in slightly different ways
assert_select "root > map > area + p"
else
assert_select "root > area + p"
end
end
def test_should_not_impose_childless_html_tags_in_xml
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册