Issue #8689 has been updated by kou (Kouhei Sutou).

Status changed from Open to Assigned
Assignee set to kou (Kouhei Sutou)


----------------------------------------
Bug #8689: REXML::StreamListener#entity?????若?喝?冴?????????
https://bugs.ruby-lang.org/issues/8689#change-40691

Author: ohai (Ippei Obayashi)
Status: Assigned
Priority: Normal
Assignee: kou (Kouhei Sutou)
Category: lib
Target version: 
ruby -v: ruby 2.1.0dev (2013-07-25 trunk 42169) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


REXML::StreamListener#entity ???????ャ?<?潟????????????
    # Called when %foo; is encountered in a doctype declaration.
    # @p content "foo"
    def entity content
    end
???吾???????????障????????篁ヤ?????潟?若??????????????????篏????茵腓????????障?????
  require 'rexml/parsers/baseparser'
  require 'rexml/parsers/streamparser'
  require 'rexml/streamlistener'
  xml = <<EOS
  <!DOCTYPE root [
  %foo;
  ]>
  <root/>
  EOS
  
  class Listener
    include REXML::StreamListener
    def entity(content)
      p content
    end
  end
  
  REXML::Parsers::StreamParser.new(xml, Listener.new).parse

lib/rexml/parsers/streamparser.rb ??с???????? entity ?????????<?純??????????若?潟????????????
??贋???????????????с?????

??????????????с??????????????篆罩c????????綽?荀???????????????????????????障?????
  * ??????<?純??????????????
  * ??????<?純???????? StreamParser ????????若?潟??????????????????
???????????????????眼????????с???????????
腱????????????????????潟?若?????????篏?????????????????ゃ????????????????????違??篏帥?c?????????????с???????ゃ????????障?c??
?????????с?????????障?????


-- 
http://bugs.ruby-lang.org/