parent
8fdf27dcef
commit
351b5ac004
|
@ -0,0 +1,14 @@
|
||||||
|
require 'spec_helper'
|
||||||
|
|
||||||
|
describe Oga::XML::Lexer do
|
||||||
|
describe 'HTML script elements' do
|
||||||
|
it 'treats all contents of a script tag as plain text' do
|
||||||
|
lex('<script>foo <bar</script>', :html => true).should == [
|
||||||
|
[:T_ELEM_START, nil, 1],
|
||||||
|
[:T_ELEM_NAME, 'script', 1],
|
||||||
|
[:T_TEXT, 'foo <bar', 1],
|
||||||
|
[:T_ELEM_END, nil, 1]
|
||||||
|
]
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue