Ticket #119 (new defect)

Opened 10 months ago

input tags with backslashes break

Reported by: aaronp Owned by: why
Priority: major Milestone:
Component: ext/hpricot_scan Version:
Keywords: Cc:

Description

Input tags with a backslash in the value makes the name empty. I'm not sure where to fix this, but I've attached a patch that tests the issue.

For example:

require 'rubygems' require 'hpricot'

doc = Hpricot(DATA.read) p doc.search('//form/input')

END <html>

<body>

<form name="test">

<input value="+\" name="wpEditToken" />

</form>

</body>

</html>

Note: See TracTickets for help on using tickets.