Not sure where to send this, sorry if it's not the right place... The html in the attached file renders 'correctly' in the 3 browsers I have tried but it tricks hpricot because of the second malformed comment. When I say correctly I mean I get to see 'Some text'. I guess it could be argued that this is incorrect. For my application it would be nice if hpricot behaved like a browser. Henry