Lex open tags with newlines in them.
This commit is contained in:
1 parent
ba17996bfc
commit
91fb7523fd
2 files changed
+10
No files matched your search
@@ -33,6 +33,14 @@ describe Oga::Lexer do
|
||||
[:T_ELEM_NAME, 'p', 1]
|
||||
]
|
||||
end
|
||||
|
||||
example 'lex an element with a newline in the open tag' do
|
||||
lex("<p\n></p>").should == [
|
||||
[:T_ELEM_OPEN, nil, 1],
|
||||
[:T_ELEM_NAME, 'p', 1],
|
||||
[:T_ELEM_CLOSE, nil, 2]
|
||||
]
|
||||
end
|
||||
end
|
||||
|
||||
context 'elements with attributes' do
|
||||
|
||||
Reference in new issue
Block a user