Closed geetee24 closed 10 years ago
The plugin now uses cheerio:
https://github.com/MatthewMueller/cheerio
Cheerio is an implementation of the JQuery api for Node. Its simpler but it also has the potential for bugs/differences between jquery and cheerio.
If you send me your HTML file, I'll see if I can reproduce it.
Hi thank you. I think that you should update your docs from:
options.callback
When you feel like bustin loose. Set a callback function and use the passed JQuery object to do anything you want to the HTML.
to:
options.callback
When you feel like bustin loose. Set a callback function and use the passed CHEERIO object to do anything you want to the HTML.
Thank you.
I'll update that sentence in the docs. That said, you still should be able to use the selector you mentioned. Perhaps its a bug in cheerio. I would be happy to investigate and report the bug to cheerio if you send me you html file to reproduce it.
Cheerio does not expose generic utility functions on $ like .each though it does provide them on the wrapper around matched elements.
I was trying to issue a jQuery $.each ( mycollection, function () {} )
but cherio does not implement $.each ()
It implements mycollection.each().......
On 3/10/2014 7:01 AM, Chris Gross wrote:
I'll update that sentence in the docs. That said, you still should be able to use the selector you mentioned. Perhaps its a bug in cheerio. I would be happy to investigate and report the bug to cheerio if you send me you html file to reproduce it.
Cheerio does not expose generic utility functions on $ like .each though it does provide them on the wrapper around matched elements.
— Reply to this email directly or view it on GitHub https://github.com/cgross/grunt-dom-munger/issues/21#issuecomment-37184650.
Gives me error: $.each is undefined. And var $methodsAndParm = $( 'ul.methods > li > h3' ); returns length of 0 when it should be 3
Is $ NOT a fully featured jquery object> Also $.fn.jquery is undefined because $.fn is undefined.
Help?
Thank you.