diff --git a/spec/oga/xml/lexer/html_void_elements_spec.rb b/spec/oga/xml/lexer/html_void_elements_spec.rb
index aac509f..8e3337f 100644
--- a/spec/oga/xml/lexer/html_void_elements_spec.rb
+++ b/spec/oga/xml/lexer/html_void_elements_spec.rb
@@ -10,6 +10,14 @@ describe Oga::XML::Lexer do
]
end
+ example 'lex a upper case void element' do
+ lex('
', html: true).should == [
+ [:T_ELEM_START, nil, 1],
+ [:T_ELEM_NAME, "BR", 1],
+ [:T_ELEM_END, nil, 1]
+ ]
+ end
+
example 'lex text after a void element' do
lex('foo', :html => true).should == [
[:T_ELEM_START, nil, 1],