1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rexml/parsers/ultralightparser.rb

(REXML::Parsers::UltraLightParser#parse): Fix wrong :start_doctype
  position.
  [Bug #9061] [ruby-dev:47778]
  Patch by Ippei Obayashi. Thanks!!!

* test/rexml/parser/test_ultra_light.rb: Add a test for this case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kou 2013-11-16 09:31:24 +00:00
parent bc3db2a512
commit a66a9fbb10
3 changed files with 78 additions and 1 deletions

View file

@ -27,7 +27,7 @@ module REXML
break
when :end_doctype
context = context[1]
when :start_element, :doctype
when :start_element, :start_doctype
context << event
event[1,0] = [context]
context = event