XMLers:
Try this failing test:
assert_xml '<html>
<form class=\'for_"sale"\' />
</html>'
assert_tag_id :form, :class ='for_"sale"'
assert_tag_id builds the XPath needed to find that for_"sale" sign. Here's
what it builds for libxml:
descendant-or-self::form[ @class = "for_"sale"" ]
Yet that doesn't hit the sample XML. No error message, but no hit either.
(I'm going thru libxml-ruby, BTW, and Ruby's native REXML has similar
problems...)
--
Phlip
http://www.oreilly.com/catalog/9780596510657/
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax