diff --git a/spec/oga/xml/lexer/html_script_spec.rb b/spec/oga/xml/lexer/html_script_spec.rb
new file mode 100644
index 0000000..54b1ccc
--- /dev/null
+++ b/spec/oga/xml/lexer/html_script_spec.rb
@@ -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('', :html => true).should == [
+ [:T_ELEM_START, nil, 1],
+ [:T_ELEM_NAME, 'script', 1],
+ [:T_TEXT, 'foo