Skip to content

Commit

Permalink
Add a comment for a UTF-8 character
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 3, 2024
1 parent 065bb91 commit 8249eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parse/test_element.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_empty_namespace_attribute_name

def test_empty_namespace_attribute_name_with_utf8_character
exception = assert_raise(REXML::ParseException) do
parse("<x :\xE2\x80\x8B>")
parse("<x :\xE2\x80\x8B>") # U+200B ZERO WIDTH SPACE
end
assert_equal(<<-DETAIL.chomp.force_encoding("ASCII-8BIT"), exception.to_s)
Invalid attribute name: <:\xE2\x80\x8B>
Expand Down

0 comments on commit 8249eac

Please sign in to comment.