Irritating REXML bug in Ruby 1.8.6
June 27th, 2007 by HenIf you’re using Ruby 1.8.6, try the following:
irb
require 'rexml/document'
REXML::Document.new("<foo x='&'/>").to_s
In 1.8.5 I get an answer of "<foo x='&'/>", in 1.8.6 it is "<foo x='&amp;'/>, ie) entities are doubly escaped when they shouldn’t be.

June 28th, 2007 at 12:49 am
Looks like REXML lacks a test suite.