File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1141,17 +1141,17 @@ def test_namespace_without_an_href_on_html_node
1141
1141
node = html . at ( "div" ) . children . first
1142
1142
refute_nil ( node )
1143
1143
1144
- if Nokogiri . uses_libxml? ( ">= 2.9.12" )
1144
+ if Nokogiri . uses_libxml? ( ">= 2.11.0" ) || Nokogiri . jruby?
1145
+ assert_empty ( node . namespaces . keys )
1146
+ assert_equal ( "<o:p>foo</o:p>" , node . to_html )
1147
+ elsif Nokogiri . uses_libxml? ( ">= 2.9.12" )
1145
1148
assert_empty ( node . namespaces . keys )
1146
1149
assert_equal ( "<p>foo</p>" , node . to_html )
1147
1150
elsif Nokogiri . uses_libxml?
1148
1151
assert_equal ( 1 , node . namespaces . keys . size )
1149
1152
assert ( node . namespaces . key? ( "xmlns:o" ) )
1150
1153
assert_nil ( node . namespaces [ "xmlns:o" ] )
1151
1154
assert_equal ( "<p>foo</p>" , node . to_html )
1152
- else # jruby
1153
- assert_empty ( node . namespaces . keys )
1154
- assert_equal ( "<o:p>foo</o:p>" , node . to_html )
1155
1155
end
1156
1156
end
1157
1157
You can’t perform that action at this time.
0 commit comments