| LoganCapaldo | shit. |
| teferi | yeah |
| jtoy_ | does hpricot support tbody? |
| teferi | um, why wouldn't it? |
| jtoy_ | not sure, I am getting the xpath with firebug and then I print it out in hpricot and get an empty string returned |
| teferi | jtoy_: the tbody isn't a real tag or, rather, it's not in the original html firefox's rendering engine put it there |
| jtoy_ | so is there a simple way to convert /html/body/table/tbody/tr/td into something hpricot can use? |
| action | LoganCapaldo has seen html w/ tbody |
| LoganCapaldo | has seen html w/ tbody |
| teferi | jtoy_: yes, drop the 'tbody' the tbody isn't /in/ the original source firebug is lying to you |
| jtoy_ | yeah, I just checked the source, there is no tbody I'm not a "html master" how else can I easily find the element I am looking for? |
| teferi | jtoy_: just /html/body/table/tr/td in that case just drop the tbody from the xpath firefox inserts tbodies after tables if they're not there I don't see how else I can put this |
| Austin-- | um. teferi: http://www.december.com/html/4/element/tbody.html |
| teferi | Austin--: yes, it is a real element Austin--: but what I'm saying is that firefox will insert it into its internal representation if the element isn't actually on the page |
| Austin-- | or, if you prever: http://www.w3.org/TR/html401/struct/tables.html IOW, ffox is normalizing the table structure. |
| teferi | yes but the point is, if you query the page with an xpath with that tbody in it, it'll fail, because there's no such element on the page |
| jtoy_ | brb, my irc client is dying dont talk too much about it with me not here!! |
| LoganCapaldo | theres nothing left to talk about just don't put tbody in yer xpath |
| teferi | yeah |
| LoganCapaldo | I always speak with an accent online |
| jtoy_ | hmm, in hpricot the arrays start at 1? so /html/body/table[1] is the 1st table as opposed to /html/body/table[0] ? |
| LoganCapaldo | s/hpricot/xpath/ |
| jtoy_ | oh, its an xpath thing? I dont know that much about how the actual parsing works |
| teferi | what LoganCapaldo said xpath is funky |
| LoganCapaldo | its not the parsing |