Added a lexer test case for uppercase void elements

This commit is contained in:
Tero Tasanen 2014-09-14 14:20:58 +03:00
parent 9c8dd60f92
commit d0f48e0e3c
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,14 @@ describe Oga::XML::Lexer do
]
end
example 'lex a upper case void element' do
lex('<BR>', 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('<link>foo', :html => true).should == [
[:T_ELEM_START, nil, 1],