Actions
Bug #12609
closedrexml attribute class is using "e instead of " when replacing " for the XML character entity "
Description
lib/rexml/attribute.rb to_string method is using "e instead of " 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 " and not "e
Also here is an exaple (http://www.w3schools.com/xml/xml_attributes.asp) on how to use quotes, notice ", ' and " are mentioned not "e this follows the above spec.
The included patch fixes the simple issue.
Files
Updated by kou (Kouhei Sutou) over 8 years ago
- Status changed from Open to Closed
- Assignee set to kou (Kouhei Sutou)
Good catch!
I've applied your patch at r55726.
Updated by nagachika (Tomoyuki Chikanaga) over 8 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED
Updated by usa (Usaku NAKAMURA) over 8 years ago
- Backport changed from 2.1: REQUIRED, 2.2: REQUIRED, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED
ruby_2_2 r55922 merged revision(s) 55726,55727.
Updated by nagachika (Tomoyuki Chikanaga) over 8 years ago
- Backport changed from 2.1: REQUIRED, 2.2: DONE, 2.3: REQUIRED to 2.1: REQUIRED, 2.2: DONE, 2.3: DONE
ruby_2_3 r55958 merged revision(s) 55726,55727.
Actions
Like0
Like0Like0Like0Like0