Ticket #127 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Entity replacement not working for add_element with dictionary

Reported by: alan_at_bocada Owned by: rubys
Priority: normal Milestone: 3.1.8
Component: DOM Version:
Severity: normal Keywords:
Cc: Ruby version: 1.8.5
Operating system: Windows

Description

This was tested against REXML 3.1.7:

Run the attached test file. It adds two elements with attributes using different techniques. The first element added, 'a' does not have propery entity escapes for the & character. The second element added, 'b', does.

This seemed to worked in REXML 3.1.6.

Attachments

xmltest.rb Download (283 bytes) - added by alan_at_bocada 2 years ago.
test case

Change History

Changed 2 years ago by alan_at_bocada

test case

Changed 2 years ago by alan_at_bocada

The output I get from running the attached test is

XML doc in string form:
<?xml version='1.0'?><root><a v='x & y'/><b v='x &amp; y'/></root>

Changed 2 years ago by rubys

  • owner changed from ser to rubys

Changed 2 years ago by rubys

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 3.1.8

Changed 2 years ago by rubys

Note: See TracTickets for help on using tickets.