Ticket #164 (assigned defect)
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
Change History
Note: See
TracTickets for help on using
tickets.
