From 84c9f5985347d84078991aae0107aac48a0a0096 Mon Sep 17 00:00:00 2001 From: ser Date: Sun, 16 May 2004 19:17:08 +0000 Subject: Fixed REXML bug #14: StreamParser reports doctype events to listeners again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rexml/parsers/streamparser.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'lib/rexml/parsers') diff --git a/lib/rexml/parsers/streamparser.rb b/lib/rexml/parsers/streamparser.rb index 51441289d9..49bef0d8fa 100644 --- a/lib/rexml/parsers/streamparser.rb +++ b/lib/rexml/parsers/streamparser.rb @@ -22,8 +22,11 @@ module REXML @listener.text( normalized ) when :processing_instruction @listener.instruction( *event[1,2] ) - when :comment, :doctype, :attlistdecl, - :elementdecl, :entitydecl, :cdata, :notationdecl, :xmldecl + when :start_doctype + @listener.doctype( *event[1..-1] ) + when :notationdecl, :entitydecl, :elementdecl + @listener.notationdecl( event[1..-1] ) + when :comment, :attlistdecl, :elementdecl, :cdata, :xmldecl @listener.send( event[0].to_s, *event[1..-1] ) end end -- cgit v1.2.3