From: Mark Thomas Date: 2008-10-07T22:53:02+09:00 Subject: Re: Hpricot elem index/position On Oct 7, 3:58 am, "henryturnerli...@googlemail.com" wrote: > Hi Mark, > > I'm writing a broken link reporting type tool. When I find a dodgy tag > I'd like to be able to relay the character position and or line number > to the user. Useful for debugging. So, are you really interested in broken *links* (as in a GET does not return a 200 result code) or broken HTML? I have done the former via AJAX (jQuery sends links to a backend rails action, and if it is broken changes the class of the link to display a red background). The latter may be able to be done with libxml, which reports the character position of broken input. -- Mark.