Project

General

Profile

Actions

Bug #12609

closed

rexml attribute class is using &quote instead of &quot when replacing " for the XML character entity "

Added by jmarrero (Joseph Marrero) almost 8 years ago. Updated over 7 years ago.

Status:
Closed
Target version:
-
[ruby-core:76509]

Description

lib/rexml/attribute.rb to_string method is using &quote instead of &quot when replacing double quotes.

https://www.w3.org/standards/xml/core

States:
" In XML, there are only five built-in character entities: <, >, &, " and ' for <, >, &, " and ' respectively. "

Notice it is &quot and not &quote

Also here is an exaple (http://www.w3schools.com/xml/xml_attributes.asp) on how to use quotes, notice ", ' and &quot are mentioned not &quote this follows the above spec.

The included patch fixes the simple issue.


Files

quot-change.patch (557 Bytes) quot-change.patch patch to correctly use the entity character. jmarrero (Joseph Marrero), 07/21/2016 06:19 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0