A solution has been published in [1], see the discussion under [2]. [1] http://angusdev.blogspot.com/2010/02/fixing-xpath-problem-in-firefox-36.html [2] http://groups.google.com/group/greasemonkey-users/browse_thread/thread/421438efc2b12d69
On Sat, Mar 27, 2010 at 4:59 AM, X <[email protected]> wrote: > code like that: > > GM_xmlhttpRequest({ > method: "POST", > url: tempUrl, > headers:{'Content-type':'application/x-www-form-urlencoded'}, > data:encodeURI(tempPostvar), > onload: function(responseDetails) > { > try{ > pulled = document.createElement('div'); > pulled.innerHTML = responseDetails.responseText; > > var pulleddoc = > document.implementation.createDocument("", "", > null); > pulleddoc.appendChild(pulled); > > ex = ".//p...@class='error']"; > err = > pulleddoc.evaluate(ex,pulled,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null); > > ex = ".//d...@class='in']"; > tag = > pulleddoc.evaluate(ex,pulled,null,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null); > > > not working with firefox 3.6,2 - eg tag.lenght is always 0 (should be > 1), in older version of FF everything is ok > > any sugestion ? -- You received this message because you are subscribed to the Google Groups "greasemonkey-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/greasemonkey-users?hl=en.
