Project

General

Profile

Actions

Bug #9367

closed

REXML::XmlDecl doesn't use user specified quotes

Added by bearmini (Takashi Oguma) over 10 years ago. Updated over 5 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
Backport:
[ruby-core:59583]

Description

=begin
REXML uses double quotes for quoting attributes if :attribute_quote is specified as document's context like below:

doc = REXML::Document.new
doc.context[:attribute_quote] = :quote

This looks working well on all elements but has no effect for xml declaration (i.e. ) if it exists.

Even if I specify (({doc.context[:attribute_quote] = :quote})), I will get this:

The expected result is:

=end


Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Bug #11176: Hardcoded settings in REXMLClosedkou (Kouhei Sutou)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0