tag:blogger.com,1999:blog-34454975.post465203701082523447..comments2023-06-28T16:58:41.189+02:00Comments on Web Reflection: vice-versa sub project: css2xpathAndrea Giammarchihttp://www.blogger.com/profile/16277820774810688474noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-34454975.post-15826245073465549102010-12-28T02:55:28.881+01:002010-12-28T02:55:28.881+01:00Hello,
Very well done! As a heads up, I have port...Hello,<br /><br />Very well done! As a heads up, I have ported this project to C#: https://code.google.com/p/css2xpath-csharp/MostThingsWebhttp://mosttw.wordpress.com/noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-4246901598276855132009-05-06T11:32:00.000+02:002009-05-06T11:32:00.000+02:00dumb question:
//*[1]/self::div
equals to
//*[1]/...dumb question:<br /><br />//*[1]/self::div<br />equals to<br />//*[1]/.[name(.) ='div']<br /><br />right?<br /><br />instead I always think it is equals to <br />//*[1]/./div<br />I don't know why ...<br />:(kentaromiurahttps://www.blogger.com/profile/01628828429767241919noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-56263320021673272332009-05-01T23:04:00.000+02:002009-05-01T23:04:00.000+02:00Juriy, I do not like that much to deal with bugs p...Juriy, I do not like that much to deal with bugs presents in browsers that people updates without being stuck forever a la Internet Explorer ... but I will consider to create a work around for that. Thanks to tell me about that problem, I did not know about it :)Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-42812138546768098352009-05-01T23:03:00.000+02:002009-05-01T23:03:00.000+02:00This comment has been removed by the author.Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-15300994861373459542009-05-01T21:17:00.000+02:002009-05-01T21:17:00.000+02:00Andrea,
How do you deal with buggy xpath's positi...Andrea,<br /><br />How do you deal with buggy xpath's position() function in webkit (up to and including Safari 4 beta, afaik)?<br /><br />See IS_XPATH_POSITION_FUNCTION_BUGGY test in my CFT (http://yura.thinkweb2.com/cft/)kangaxhttp://thinkweb2.com/projects/prototype/noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-78720642971475646152009-05-01T17:00:00.000+02:002009-05-01T17:00:00.000+02:00wow.. you really rocks at regex and XPath! ; )wow.. you really rocks at regex and XPath! ; )Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-34454975.post-60389342679485562892009-05-01T14:24:00.000+02:002009-05-01T14:24:00.000+02:00uhm ... considering that div[class!="none"] is 46 ...uhm ... considering that div[class!="none"] is 46 in Sizzle, I guess it is a Sizzle problem with empty clause in class ... at least, logically speaking, I would expect 45 as well ...Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-52491740424933831862009-05-01T14:19:00.000+02:002009-05-01T14:19:00.000+02:00well, depends ... it is not simple to say.
If we ...well, depends ... it is not simple to say.<br /><br />If we cosider attrib != value as every element where attrib is different and where every element without attrib obviously will considered different, XPath is the right one.<br /><br />But if we consider attrib != value as attrib must be present and have to be different from value, Sizzle is the right one.<br /><br />So, the question is, which way to interpreter != is the correct one?Andrea Giammarchihttps://www.blogger.com/profile/16277820774810688474noreply@blogger.comtag:blogger.com,1999:blog-34454975.post-74073896056181258482009-05-01T14:05:00.000+02:002009-05-01T14:05:00.000+02:00What to believe,
css2xpath or sizzle :)
Query: d...What to believe,<br /><br />css2xpath or sizzle :)<br /><br />Query: div[class!=""]<br /><br />Function : css2xpath<br />Result : //div[not(@class) or @class!=""]<br />Valid : true<br />Found : 46<br />Via Sizzle : 45V1https://www.blogger.com/profile/00868333074240275627noreply@blogger.com