Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Sizzle is one of the engines we are checking out. Is HTML.js better? No idea. Worse? Same answer.

HTML.js is still smaller (a huge factor for me right now) and less 'robust', but that isn't always a bad thing.



By the looks of it, HTML.js is worse than plain DOM. Try `HTML.body.div.section.ul` in the example on its homepage, for instance - I'm willing to bet that's not doing what you'd expect.


I'm hoping it returns undefined. Dot-traversal on a list goes into the first item, the first item should be empty. I have had some issues with the demo, since it hacks some things for presentation's sake. What did you expect?


It 'selects' all the section nodes. That's what .only() is for.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: