Cross-ported fix for REXML bug #14, StreamParser and doctype events.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ser 2004-05-16 19:18:58 +00:00
Родитель 0d04057aad
Коммит ad68e20351
2 изменённых файлов: 7 добавлений и 4 удалений

Просмотреть файл

@ -22,8 +22,11 @@ module REXML
@listener.text( normalized ) @listener.text( normalized )
when :processing_instruction when :processing_instruction
@listener.instruction( *event[1,2] ) @listener.instruction( *event[1,2] )
when :comment, :doctype, :attlistdecl, when :start_doctype
:elementdecl, :entitydecl, :cdata, :notationdecl, :xmldecl @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] ) @listener.send( event[0].to_s, *event[1..-1] )
end end
end end

Просмотреть файл

@ -10,7 +10,7 @@
# #
# Main page:: http://www.germane-software.com/software/rexml # Main page:: http://www.germane-software.com/software/rexml
# Author:: Sean Russell <serATgermaneHYPHENsoftwareDOTcom> # Author:: Sean Russell <serATgermaneHYPHENsoftwareDOTcom>
# Version:: 3.0.8 # Version:: 3.0.9
# Date:: +2004/137 # Date:: +2004/137
# #
# This API documentation can be downloaded from the REXML home page, or can # This API documentation can be downloaded from the REXML home page, or can
@ -22,5 +22,5 @@
module REXML module REXML
Copyright = "Copyright © 2001, 2002, 2003, 2004 Sean Russell <ser@germane-software.com>" Copyright = "Copyright © 2001, 2002, 2003, 2004 Sean Russell <ser@germane-software.com>"
Date = "+2004/137" Date = "+2004/137"
Version = "3.0.8" Version = "3.0.9"
end end