Hacker News new | past | comments | ask | show | jobs | submit login

I presume to allow for idiomatic use in code that already uses a lot of jQuery:

    var file = $('a#interesting').url('file')
vs

    var file = url($('a#interesting'), 'file');



I don't see what DOM has to do with URL parsing.




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: