
Nokogiri using hexadecimal character references
Reported by Zach Dennis | November 30th, 2008 @ 10:06 PM
My app is producing:
<option value="5">John 3 Doe – Location 4</option>
However when webrat parses it with Nokogiri it returns:
<option value="5">John 3 Doe – Location 4</option>
My feeble attempt to produce a failing spec in webrat itself failed. I am using the latest webrat as of a few minutes ago. The actual response body that webrat gets includes the un-encoded option text, so I am ruling out that my app is generating the hexadecimal character references.
All of this makes things like the following fail:
selects "John 3 Doe - Location 4", :from => "label"
I am using the latest from webrat and also Nokogiri 1.0.6.
Comments and changes to this ticket
-
Zach Dennis November 30th, 2008 @ 10:34 PM
This can be closed. The hyphen we were outputting was really a dash. Nokogiri was doing the right thing. Programmer error.
-
Bryan Helmkamp December 1st, 2008 @ 08:13 PM
- State changed from new to resolved
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Ruby Acceptance Testing for Web applications.