mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
0d04057aad
commit
ad68e20351
2 changed files with 7 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue