Added a lexer test case for uppercase void elements
This commit is contained in:
parent
9c8dd60f92
commit
d0f48e0e3c
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue