Skip to content

Commit

Permalink
dev: add test use for the issue sparklemotion#2559
Browse files Browse the repository at this point in the history
  • Loading branch information
cbasguti committed Jun 1, 2023
1 parent 79b8b4f commit 6da7a89
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/xml/test_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1342,6 +1342,11 @@ def test_text_node_robustness_gh1426
end
end

# issue 2559
def test_serialize_unparented_node
assert_equal("asdf", Nokogiri::HTML4::Document.parse("<div></div>").create_text_node("asdf").to_s)
end

describe "#wrap" do
let(:xml) { "<root><thing><div>important thing</div></thing></root>" }
let(:doc) { Nokogiri::XML(xml) }
Expand Down

0 comments on commit 6da7a89

Please sign in to comment.