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

On the other hand, `$('#'+id)` fails when the ID contains dot or other characters that have special meaning in a CSS selector, and `$(selector)` is overloaded with `$(html)` causing common XSS injection issues in apps misusing it. jQuery's “Do What I Mean” philosophy jas introduced as many of its own bugs as it ever fixed in browsers; I wish there were a happy medium.


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

Search: