Ticket #164 (assigned defect)

Opened 4 months ago

Last modified 4 months ago

REXML::Text responds to =~ but not usefully

Reported by: timbray Owned by: ser
Priority: normal Milestone: 3.1.8
Component: XPath Version: 3.1.6
Severity: normal Keywords:
Cc: Ruby version: 1.8.6
Operating system: MacOS

Description

if you pull text out of a dom with XPath including text(), you get an REXML::Text, which responds to =~, but apparently never returns true. If you apply to_s to the REXML::Text then things are OK. It'd be OK to blow up on =~, but if it responds, it should respond correctly.

Attachments

rbug.rb (257 bytes) - added by timbray 4 months ago.

Change History

Changed 4 months ago by timbray

Changed 4 months ago by ser

  • status changed from new to assigned

Confirmed willfix.

Changed 4 months ago by ser

  • milestone set to 3.1.8
Note: See TracTickets for help on using tickets.