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

I think the way it's done is correct, an object passed as a parameter with key value pairs for attributes seems a lot more logical.


Maybe, but I bet this way would be slightly faster, because the library wouldn't have to loop through keys if they write functions for all the most common attributes (href, rel, className, type, etc)




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

Search: